summaryrefslogtreecommitdiff
path: root/mm/kmsan/kmsan_test.c
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2022-12-05 17:03:27 +0300
committerAndrew Morton <akpm@linux-foundation.org>2022-12-12 05:12:21 +0300
commitde2e5171433126d340573cb7d0d4fcac084ab2a0 (patch)
tree853a2c011413ff9a83d08bf53b6a8a3198a16387 /mm/kmsan/kmsan_test.c
parent8614d6c5eda005ad72b37afeaae2879d7c101b18 (diff)
downloadlinux-de2e5171433126d340573cb7d0d4fcac084ab2a0.tar.xz
mm: add cond_resched() in swapin_walk_pmd_entry()
When handling MADV_WILLNEED in madvise(), a soflockup may occurr in swapin_walk_pmd_entry() if swapping in lots of memory on a slow device. Add a cond_resched() to avoid the possible softlockup. Link: https://lkml.kernel.org/r/20221205140327.72304-1-wangkefeng.wang@huawei.com Fixes: 1998cc048901 ("mm: make madvise(MADV_WILLNEED) support swap file prefetch") Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Cc: Shaohua Li <shli@fusionio.com> Cc: Hugh Dickins <hughd@google.com> Cc: Rik van Riel <riel@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/kmsan/kmsan_test.c')
0 files changed, 0 insertions, 0 deletions