]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
proc: do translation + unlink atomically at remove_proc_entry()
authorAlexey Dobriyan <adobriyan@gmail.com>
Fri, 5 Mar 2010 21:43:59 +0000 (13:43 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Mar 2010 19:26:45 +0000 (11:26 -0800)
commite17a5765f20d1219c3f05eb17aab11671978e0ec
tree6dae8ad2358efac94587dd86104fdccc715fbfde
parent5748150eabdacd3f870c311b63d32f5e312bf624
proc: do translation + unlink atomically at remove_proc_entry()

remove_proc_entry() does

lock
lookup parent
unlock
lock
unlink proc entry from lists
unlock

which can be made bit more correct by doing parent translation + unlink
without dropping lock.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/generic.c