]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: fix race between cap issue and revoke
authorYan, Zheng <zheng.z.yan@intel.com>
Thu, 20 Feb 2014 08:09:57 +0000 (16:09 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Thu, 27 Feb 2014 03:59:59 +0000 (11:59 +0800)
commitc1e40c60ac6a5100f7a1b3896bcd91af3b7154b9
treef68c0e049e49670c500adb75586488b284713485
parent5c55eb106f57d64b0e500a91d742ce38b6a93f1a
client: 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>
src/client/Client.cc