]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1591403659295dce59b7193ec1539d2ebe780574
tree1ecb6f35e572ba1e498390d1b09faf3c309bbaee
parent12ac35dfaed9e8d9ee42f7a8fb10a3ba807a03ea
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