]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit4919c5e45a91b5db5a41695fe0357fbdff0d5767
tree1aec0bdee83753205be2a6bbe0486db08984f938
parentbec1052e5be6a70f03f6adc650f3a6e4c2f44ddf
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