]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: fix cache revoke race
authorYan, Zheng <zheng.z.yan@intel.com>
Fri, 22 Nov 2013 05:50:45 +0000 (13:50 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Tue, 21 Jan 2014 05:29:32 +0000 (13:29 +0800)
commit7821d52e198375019fc6e5dc5d402e4f92bcf0e9
tree421b041c32cd218720bc1369b0abe1ce353d4547
parent1bfb26389baa11ae5f180fd6f7b0d5b26e3fde9d
ceph: fix cache revoke race

handle following sequence of events:

- non-auth MDS revokes Fc cap. queue invalidate work
- auth MDS issues Fc cap through request reply. i_rdcache_gen gets
  increased.
- invalidate work runs. it finds i_rdcache_revoking != i_rdcache_gen,
  so it does nothing.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
fs/ceph/caps.c
fs/ceph/inode.c
fs/ceph/super.h