Skip to content

Commit 14aa8b2

Browse files
Yu Zhaoakpm00
authored andcommitted
mm/mglru: don't sync disk for each aging cycle
wakeup_flusher_threads() was added under the assumption that if a system runs out of clean cold pages, it might want to write back dirty pages more aggressively so that they can become clean and be dropped. However, doing so can breach the rate limit a system wants to impose on writeback, resulting in early SSD wearout. Link: https://lkml.kernel.org/r/[email protected] Fixes: bd74fda ("mm: multi-gen LRU: support page table walks") Signed-off-by: Yu Zhao <[email protected]> Reported-by: Axel Rasmussen <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent e55b9f9 commit 14aa8b2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mm/vmscan.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4413,8 +4413,6 @@ static bool try_to_inc_max_seq(struct lruvec *lruvec, unsigned long max_seq,
44134413
if (wq_has_sleeper(&lruvec->mm_state.wait))
44144414
wake_up_all(&lruvec->mm_state.wait);
44154415

4416-
wakeup_flusher_threads(WB_REASON_VMSCAN);
4417-
44184416
return true;
44194417
}
44204418

0 commit comments

Comments
 (0)