]> git.baikalelectronics.ru Git - kernel.git/commit
switch mnt_hash to hlist
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 21 Mar 2014 01:10:51 +0000 (21:10 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 30 Mar 2014 23:18:51 +0000 (19:18 -0400)
commit4efc9345e5348c96020751954bc827fe3380a560
tree438e817fdf7d224f9fda1186eb24b1bbc37a4b5c
parent8c52cdf33a355e0a3872fb92368f44d3dcd65dfc
switch mnt_hash to hlist

fixes RCU bug - walking through hlist is safe in face of element moves,
since it's self-terminating.  Cyclic lists are not - if we end up jumping
to another hash chain, we'll loop infinitely without ever hitting the
original list head.

[fix for dumb braino folded]

Spotted by: Max Kellermann <mk@cm4all.com>
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/mount.h
fs/namespace.c
fs/pnode.c
fs/pnode.h