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: syzbot+ae80b790eb412884c...@syzkaller.appspotmail.com
> Cc: Nikolay Borisov <nbori...@suse.com>
> Cc: Andrew Morton <a...@linux-foundation.org>
> Cc: David Rientjes <rient...@google.com>
> Cc: Alexander Viro <v...@zeniv.linux.org.uk>
> Cc: Goldwyn Rodrigues <rgold...@suse.de>
> Cc: Jeff Mahoney <je...@suse.com>
> Cc: Davidlohr Bueso <d...@stgolabs.net>
> Cc: Linus Torvalds <torva...@linux-foundation.org>
> Signed-off-by: Khazhismel Kumykov <kha...@google.com>

Acked-by: David Rientjes <rient...@google.com>

Reply via email to