]> git.baikalelectronics.ru Git - kernel.git/commit
get rid of trylock loop around dentry_kill()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 24 Feb 2018 02:25:42 +0000 (21:25 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 29 Mar 2018 19:07:44 +0000 (15:07 -0400)
commit9f177f974b95b0928a93a0db7118805c72c1cc52
treecf01b5b08611520699f8425b24029f7076a6357a
parentb6ff6f6bdc44610a24f162a3eb65061883e936fc
get rid of trylock loop around dentry_kill()

In case when trylock in there fails, deal with it directly in
dentry_kill().  Note that in cases when we drop and retake
->d_lock, we need to recheck whether to retain the dentry.
Another thing is that dropping/retaking ->d_lock might have
ended up with negative dentry turning into positive; that,
of course, can happen only once...

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