]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: use rdlock_try() when checking NULL dentry
authorYan, Zheng <zheng.z.yan@intel.com>
Mon, 19 Nov 2012 02:43:48 +0000 (10:43 +0800)
committerSage Weil <sage@inktank.com>
Sat, 1 Dec 2012 20:52:23 +0000 (12:52 -0800)
commit2a5068944ef73c55a60e3333b5641177c5381db9
tree5f6b13748775a9691c58c927c485dc6ff2676128
parent1203cd21104d131e459891392ac1fbf52bd0160d
mds: use rdlock_try() when checking NULL dentry

Use rdlock_try() instead can_read() when path_traverse encounters
a NULL dentry. This can partly avoid infinitely waiting for the
dentry to become readable when the dentry is replica.

Strictly speaking, use rdlock_try() is still enough because auth
MDS may drop the REQRDLOCK message in some cases.

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