From: Sage Weil Date: Tue, 26 Jul 2011 18:30:29 +0000 (-0700) Subject: ceph: protect access to d_parent X-Git-Tag: v3.1-rc1~220^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f21c96dd5c615341963036ae8f5e4f5227a818d;p=pandora-kernel.git ceph: protect access to d_parent d_parent is protected by d_lock: use it when looking up a dentry's parent directory inode. Also take a reference and drop it in the caller to avoid a use-after-free. Reported-by: Al Viro Reviewed-by: Yehuda Sadeh Signed-off-by: Sage Weil --- Reading git-diff-tree failed