]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix straydn race
authorYan, Zheng <zheng.z.yan@intel.com>
Fri, 5 Apr 2013 11:50:35 +0000 (19:50 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Tue, 28 May 2013 05:57:21 +0000 (13:57 +0800)
commit0708d44f123b254ef41d0e27c23f4470ae35d2ee
tree82c52859e10c45c64671f8ad3c7d2b515b1cbdec
parent7a6ec35367fa9a8f5728201efc0a42119fac884c
mds: fix straydn race

For unlink/rename request, the target dentry's linkage may change
before all locks are acquired. So we need check if the existing stray
dentry is valid.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
src/mds/Mutation.cc
src/mds/Mutation.h
src/mds/Server.cc
src/mds/Server.h