]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Hang/soft lockup in d_invalidate with simultaneous calls
authorAl Viro <viro@ZenIV.linux.org.uk>
Sat, 3 Jun 2017 06:20:09 +0000 (07:20 +0100)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 1 Nov 2017 01:25:23 +0000 (21:25 -0400)
commitb341a8a10cb20964f543c7d37c37e5e543253483
treef6b9797f5d4d5811cd797798bc301405623c8002
parentfe9bef89b8b326682955b53155277e6fb673c124
Hang/soft lockup in d_invalidate with simultaneous calls

It's not hard to trigger a bunch of d_invalidate() on the same
dentry in parallel.  They end up fighting each other - any
dentry picked for removal by one will be skipped by the rest
and we'll go for the next iteration through the entire
subtree, even if everything is being skipped.  Morevoer, we
immediately go back to scanning the subtree.  The only thing
we really need is to dissolve all mounts in the subtree and
as soon as we've nothing left to do, we can just unhash the
dentry and bugger off.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
(cherry picked from commit 81be24d263dbeddaba35827036d6f6787a59c2c3)

Orabug: 26908674
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
fs/dcache.c