diff options
author | Jan Kara <jack@suse.cz> | 2022-06-23 10:51:44 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-07-24 18:39:31 -0600 |
commit | ea6813be07dcdc072aa9ad18099115a74cecb5e1 (patch) | |
tree | f4e94a1779139dc9f57684fbce5fc29b76541c2b /fs | |
parent | f6b543fd03d347e8bf245cee4f2d54eb6ffd8fcb (diff) |
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>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions