]> git.baikalelectronics.ru Git - kernel.git/commit
mm: Move starting of background writeback into the main balancing loop
authorJan Kara <jack@suse.cz>
Thu, 23 Jun 2022 17:51:44 +0000 (10:51 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jul 2022 00:39:31 +0000 (18:39 -0600)
commit28989a8ee90ef4c80cc3e3a072a6b0add1c312cb
treef4e94a1779139dc9f57684fbce5fc29b76541c2b
parenta9e232ca2944ab431c75d67be6803d9d41452115
mm: Move starting of background writeback into the main balancing loop

We start background writeback if we are over background threshold after
exiting the main loop in balance_dirty_pages(). This may result in
basing the decision on already stale values (we may have slept for
significant amount of time) and it is also inconvenient for refactoring
needed for async dirty throttling. Move the check into the main waiting
loop.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Stefan Roesch <shr@fb.com>
Link: https://lore.kernel.org/r/20220623175157.1715274-2-shr@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
mm/page-writeback.c