]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit55d24d952b29fd0c6a2e725175db977c4e56a167
tree283aac6bf2cc91a772d9cc04c97f46f60267e4c5
parent7d94b673bb44c91aa6f20aee34d12482a55b5c3b
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