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)
commit61f68816211ee4b884dc0dda8dd4d977548f4865
tree8363f3938546bf044dac413bff490dd2e9e12310
parent9b60e70b3b6a8e4bc2d1b6d9f858a30e1cec496b
ceph: check caps in filemap_fault and page_mkwrite

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