]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: fix race between cap issue and revoke
authorYan, Zheng <zheng.z.yan@intel.com>
Tue, 2 Jul 2013 04:40:21 +0000 (12:40 +0800)
committerSage Weil <sage@inktank.com>
Wed, 3 Jul 2013 22:32:57 +0000 (15:32 -0700)
commite8b43a30b4bba98223d6961d64240e8b40d24cf0
tree7173050cd5f444db41e62b5d1d6b813042dca0e1
parent7f6c656163a38c820f4576ad5e0da3036340ff2c
ceph: fix race between cap issue and revoke

If we receive new caps from the auth MDS and the non-auth MDS is
revoking the newly issued caps, we should release the caps from
the non-auth MDS. The scenario is filelock's state changes from
SYNC to LOCK. Non-auth MDS revokes Fc cap, the client gets Fc cap
from the auth MDS at the same time.

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