]> git.karo-electronics.de Git - karo-tx-linux.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>
Thu, 13 Jun 2013 15:46:30 +0000 (08:46 -0700)
commitd8d50b10d9a2b418be8cb03c93b624c8bec6732a
treef51675bcd2160a99c958de17be4240b891cbf7bb
parentbdcdce7fc6b3beeee76e6333d18b25ba837cdff6
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