ceph: protect d_parent access in ceph_d_revalidate
authorSage Weil <sage@newdream.net>
Tue, 26 Jul 2011 18:30:43 +0000 (11:30 -0700)
committerSage Weil <sage@newdream.net>
Tue, 26 Jul 2011 18:30:43 +0000 (11:30 -0700)
commitbf1c6aca96c9d2f117dc7e590c2bc2304e7febe1
tree1ecb6f35e572ba1e498390d1b09faf3c309bbaee
parent5f21c96dd5c615341963036ae8f5e4f5227a818d
ceph: protect d_parent access in ceph_d_revalidate

Protect d_parent with d_lock.  Carry a reference.  Simplify the flow so
that there is a single exit point and cleanup.

Reviewed-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/dir.c