]> git.baikalelectronics.ru Git - kernel.git/commit
dcache_{readdir,dir_lseek}(): don't bother with nested ->d_lock
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 6 Jun 2016 22:55:57 +0000 (18:55 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 20 Jun 2016 21:11:26 +0000 (17:11 -0400)
commit6affadf6fa57b7228d1cb70931810085d1d32e6f
treeb67a10ee704422c2674462c9edec183c6c493a78
parenta67b0d762f9836a3da2d8e5d85b05a9459152a2f
dcache_{readdir,dir_lseek}(): don't bother with nested ->d_lock

Make sure that directory is locked shared in dcache_dir_lseek();
for dcache_readdir() it's already tru, and that's enough to make
simple_positive() stable.

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