Skip to content
Commit ea6813be authored by Jan Kara's avatar Jan Kara Committed by Jens Axboe
Browse files

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: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarStefan Roesch <shr@fb.com>
Link: https://lore.kernel.org/r/20220623175157.1715274-2-shr@fb.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent f6b543fd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment