ceph: check caps in filemap_fault and page_mkwrite
authorYan, Zheng <zheng.z.yan@intel.com>
Thu, 28 Nov 2013 06:28:14 +0000 (14:28 +0800)
committerIlya Dryomov <ilya.dryomov@inktank.com>
Tue, 31 Dec 2013 18:32:00 +0000 (20:32 +0200)
Adds cap check to the page fault handler. The check prevents page
fault handler from adding new page to the page cache while Fcb caps
are being revoked. This solves Fc revoking hang in multiple clients
mmap IO workload.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Sage Weil <sage@inktank.com>
fs/ceph/addr.c

diff --cc fs/ceph/addr.c
Simple merge