summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorJoe Thornber <ejt@redhat.com>2017-05-11 12:09:38 +0300
committerMike Snitzer <snitzer@redhat.com>2017-05-15 04:54:32 +0300
commit78c45607b909fb384c47c134d89b39285a6a8b45 (patch)
treef6f5c4faa2a48297a2dab49e61fb8dae94526ce1 /drivers/md
parenta8cd1eba6135e086109e2b94bf96deb17456ede8 (diff)
downloadlinux-78c45607b909fb384c47c134d89b39285a6a8b45.tar.xz
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')
-rw-r--r--drivers/md/dm-cache-policy-smq.c2
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;
}