]> git.baikalelectronics.ru Git - kernel.git/commit
fix race in d_splice_alias()
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 3 Mar 2010 19:13:08 +0000 (14:13 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 3 Mar 2010 19:13:08 +0000 (14:13 -0500)
commitdfbe8ebd7f67b29889c3c05538506535973e7488
tree1aec0bdee83753205be2a6bbe0486db08984f938
parent4d47e9a3ec53753c9a93958bf268f5695db77d59
fix race in d_splice_alias()

rehashing the negative placeholder opens a race with d_lookup();
we unhash it almost immediately (by d_move()), but the race
window is there.  Since d_move() doesn't rely on target being
hashed, we don't need that d_rehash() at all.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/dcache.c