]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0498060e606c2065a03702e3d500fe1b391567c6
tree8363f3938546bf044dac413bff490dd2e9e12310
parent7108abb19501502a4e15ff3896eac5968ea88166
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