]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: dcache: use DCACHE_DENTRY_KILLED instead of DCACHE_DISCONNECTED in d_kill()
authorMiklos Szeredi <mszeredi@suse.cz>
Mon, 17 Sep 2012 20:31:38 +0000 (22:31 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 18 Sep 2012 18:23:51 +0000 (11:23 -0700)
commitfa7c0601e9f24614a59d11487c795193efc6f7d7
tree51ca2936e508c2c0f4a330c6dfdb1535a26eb6f9
parent0421e59f06c5a87cdcb3c7f5d63751797b97cb10
vfs: dcache: use DCACHE_DENTRY_KILLED instead of DCACHE_DISCONNECTED in d_kill()

IBM reported a soft lockup after applying the fix for the rename_lock
deadlock.  Commit 813bb9f0d0e1 ("VFS: Fix the nfs sillyrename regression
in kernel 2.6.38") was found to be the culprit.

The nfs sillyrename fix used DCACHE_DISCONNECTED to indicate that the
dentry was killed.  This flag can be set on non-killed dentries too,
which results in infinite retries when trying to traverse the dentry
tree.

This patch introduces a separate flag: DCACHE_DENTRY_KILLED, which is
only set in d_kill() and makes try_to_ascend() test only this flag.

IBM reported successful test results with this patch.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/dcache.c
include/linux/dcache.h