ceph: avoid carrying Fw cap during write into page cache
authorSage Weil <sage@newdream.net>
Tue, 26 Jul 2011 18:27:34 +0000 (11:27 -0700)
committerSage Weil <sage@newdream.net>
Tue, 26 Jul 2011 18:27:34 +0000 (11:27 -0700)
commitd8de9ab63a57326d21154c13c365f949f53ce8e1
tree283aac6bf2cc91a772d9cc04c97f46f60267e4c5
parent4cf9d544631c92809cb94ea680c71df56e9437aa
ceph: avoid carrying Fw cap during write into page cache

The generic_file_aio_write call may block on balance_dirty_pages while we
flush data to the OSDs.  If we hold a reference to the FILE_WR cap during
that interval revocation by the MDS (e.g., to do a stat(2)) may be very
slow.

Reviewed-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/file.c