diff options
author | Joe Thornber <[email protected]> | 2023-07-25 11:44:41 -0400 |
---|---|---|
committer | Mike Snitzer <[email protected]> | 2023-07-25 11:55:50 -0400 |
commit | 1e4ab7b4c881cf26c1c72b3f56519e03475486fb (patch) | |
tree | bb08b4ac1c8e9afb9f44a195716239bdd73abc8b /lib/test_fortify/write_overflow-memcpy.c | |
parent | 7d5fff8982a2199d49ec067818af7d84d4f95ca0 (diff) |
dm cache policy smq: ensure IO doesn't prevent cleaner policy progress
When using the cleaner policy to decommission the cache, there is
never any writeback started from the cache as it is constantly delayed
due to normal I/O keeping the device busy. Meaning @idle=false was
always being passed to clean_target_met()
Fix this by adding a specific 'cleaner' flag that is set when the
cleaner policy is configured. This flag serves to always allow the
cleaner's writeback work to be queued until the cache is
decommissioned (even if the cache isn't idle).
Reported-by: David Jeffery <[email protected]>
Fixes: b29d4986d0da ("dm cache: significant rework to leverage dm-bio-prison-v2")
Cc: [email protected]
Signed-off-by: Joe Thornber <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions