From: Yan, Zheng Date: Tue, 2 Jul 2013 04:40:21 +0000 (+0800) Subject: ceph: fix race between cap issue and revoke X-Git-Tag: v3.11-rc1~69^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ee6b95373dfa1d0a4c9bc76689ec10a60c1d6f2;p=pandora-kernel.git 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 Reviewed-by: Sage Weil --- Reading git-diff-tree failed