Revision fa41b900c30b45fab03783724932dc30cd46a6be authored by Kirill A. Shutemov on 22 March 2018, 23:17:31 UTC, committed by Linus Torvalds on 23 March 2018, 00:07:01 UTC
deferred_split_scan() gets called from reclaim path. Waiting for page lock may lead to deadlock there. Replace lock_page() with trylock_page() and skip the page if we failed to lock it. We will get to the page on the next scan. Link: http://lkml.kernel.org/r/20180315150747.31945-1-kirill.shutemov@linux.intel.com Fixes: 9a982250f773 ("thp: introduce deferred_split_huge_page()") Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Acked-by: Michal Hocko <mhocko@suse.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent fece202
File | Mode | Size |
---|---|---|
Makefile | -rw-r--r-- | 164 bytes |
file-mmu.c | -rw-r--r-- | 1.6 KB |
file-nommu.c | -rw-r--r-- | 6.8 KB |
inode.c | -rw-r--r-- | 6.4 KB |
internal.h | -rw-r--r-- | 479 bytes |
Computing file changes ...