Fix ->d_lock locking order in unlazy_walk()
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 13 Jul 2011 01:40:23 +0000 (21:40 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 13 Jul 2011 01:40:23 +0000 (21:40 -0400)
commit94c0d4ecbe7f9fe56e052b26b2ab484e246c07b4
treeaa6d28122deb93e6f14b89d78987ef91d722b59d
parent258e43fdb00c73d424b114ae3850accd55b27cbb
Fix ->d_lock locking order in unlazy_walk()

Make sure that child is still a child of parent before nested locking
of child->d_lock in unlazy_walk(); otherwise we are risking a violation
of locking order and deadlocks.

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