kswapd: replace try_to_freeze() with kthread_freezable_should_stop()
authorLevi Yun <ppbuk5246@gmail.com>
Fri, 26 Jan 2024 15:25:54 +0000 (15:25 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 22 Feb 2024 18:24:41 +0000 (10:24 -0800)
commit96200c915040c2ec6f6c173a29caf9f7c9c15a7e
treef913a5b5e029c020b898e94ff24658e65c7cdeee
parent13ef7424577ff9b663aeaa4fda67e186d9856df3
kswapd: replace try_to_freeze() with kthread_freezable_should_stop()

Instead of using try_to_freeze, use kthread_freezable_should_stop in
kswapd.  By this, we can avoid unnecessary freezing when kswapd should
stop.

Link: https://lkml.kernel.org/r/20240126152556.58791-1-ppbuk5246@gmail.com
Signed-off-by: Levi Yun <ppbuk5246@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c