diff options
author | Joe Thornber <ejt@redhat.com> | 2017-05-11 11:09:38 +0200 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2017-05-15 03:54:32 +0200 |
commit | 78c45607b909fb384c47c134d89b39285a6a8b45 (patch) | |
tree | f6f5c4faa2a48297a2dab49e61fb8dae94526ce1 /drivers/md/dm-cache-policy-smq.c | |
parent | dm cache policy smq: only demote entries in bottom half of the clean multiqueue (diff) | |
download | linux-78c45607b909fb384c47c134d89b39285a6a8b45.tar.xz linux-78c45607b909fb384c47c134d89b39285a6a8b45.zip |
dm cache policy smq: be more aggressive about triggering a writeback
If there are no clean entries to demote we really want to writeback
immediately.
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-cache-policy-smq.c')
-rw-r--r-- | drivers/md/dm-cache-policy-smq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-cache-policy-smq.c b/drivers/md/dm-cache-policy-smq.c index a177559f2049..5aa8f43856c5 100644 --- a/drivers/md/dm-cache-policy-smq.c +++ b/drivers/md/dm-cache-policy-smq.c @@ -1192,7 +1192,7 @@ static void queue_demotion(struct smq_policy *mq) e = q_peek(&mq->clean, mq->clean.nr_levels / 2, true); if (!e) { - if (!clean_target_met(mq, false)) + if (!clean_target_met(mq, true)) queue_writeback(mq); return; } |