From: J. Bruce Fields Date: Mon, 17 Feb 2014 22:45:56 +0000 (-0500) Subject: dcache: close d_move race in d_splice_alias X-Git-Tag: cleanup-for-v3.18~46^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75a2352d0110960aeee1a28ddc09a55f97c99100;p=pandora-kernel.git dcache: close d_move race in d_splice_alias d_splice_alias will d_move an IS_ROOT() directory dentry into place if one exists. This should be safe as long as the dentry remains IS_ROOT, but I can't see what guarantees that: once we drop the i_lock all we hold here is the i_mutex on an unrelated parent directory. Instead copy the logic of d_materialise_unique. Reviewed-by: Christoph Hellwig Signed-off-by: J. Bruce Fields Signed-off-by: Al Viro --- Reading git-diff-tree failed