]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: fix cap release race
authorYan, Zheng <zheng.z.yan@intel.com>
Mon, 3 Jun 2013 10:22:17 +0000 (18:22 +0800)
committerSage Weil <sage@inktank.com>
Wed, 3 Jul 2013 22:32:46 +0000 (15:32 -0700)
commit9c2989f48a3777d6a73d6629938fdd24b0d8088e
tree393f01adbf4b55b590f8831b5a7aa3ab96ccbf06
parent18e7881b45b685cfa4b1ac23abc0a0b397966129
ceph: fix cap release race

ceph_encode_inode_release() can race with ceph_open() and release
caps wanted by open files. So it should call __ceph_caps_wanted()
to get the wanted caps.

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