diff options
author | Joe Thornber <ejt@redhat.com> | 2017-05-11 05:09:38 -0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2017-05-14 21:54:32 -0400 |
commit | 78c45607b909fb384c47c134d89b39285a6a8b45 (patch) | |
tree | f6f5c4faa2a48297a2dab49e61fb8dae94526ce1 /drivers/md/dm-cache-policy-smq.c | |
parent | a8cd1eba6135e086109e2b94bf96deb17456ede8 (diff) | |
download | linux-stable-78c45607b909fb384c47c134d89b39285a6a8b45.tar.gz linux-stable-78c45607b909fb384c47c134d89b39285a6a8b45.tar.bz2 linux-stable-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; } |