On Fri, 13 Apr 2018, Khazhismel Kumykov wrote:
> shrink_dcache_parent may spin waiting for a parallel shrink_dentry_list.
> In this case we may have 0 dentries to dispose, so we will never
> schedule out while waiting for the parallel shrink_dentry_list to
> complete.
>
> Tested that this fixes syzbot reports of stalls in shrink_dcache_parent()
>
> Fixes: 32785c0539b7 ("fs/dcache.c: add cond_resched() in
> shrink_dentry_list()")
> Reported-by: [email protected]
>
> Cc: Nikolay Borisov <[email protected]>
> Cc: Andrew Morton <[email protected]>
> Cc: David Rientjes <[email protected]>
> Cc: Alexander Viro <[email protected]>
> Cc: Goldwyn Rodrigues <[email protected]>
> Cc: Jeff Mahoney <[email protected]>
> Cc: Davidlohr Bueso <[email protected]>
> Cc: Linus Torvalds <[email protected]>
> Signed-off-by: Khazhismel Kumykov <[email protected]>
Acked-by: David Rientjes <[email protected]>