Commit cc7e3940 authored by Joe Thornber's avatar Joe Thornber Committed by Mike Snitzer

dm cache policy smq: make the cleaner policy write-back more aggressively

By ignoring the sentinels the cleaner policy is able to write-back dirty
cache data much faster.  There is no reason to respect the sentinels,
which denote that a block was changed recently, when using the cleaner
policy given that the cleaner is tasked with writing back all dirty
data.
Signed-off-by: default avatarJoe Thornber <ejt@redhat.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 449b668c
...@@ -1166,7 +1166,7 @@ static void queue_writeback(struct smq_policy *mq) ...@@ -1166,7 +1166,7 @@ static void queue_writeback(struct smq_policy *mq)
struct policy_work work; struct policy_work work;
struct entry *e; struct entry *e;
e = q_peek(&mq->dirty, mq->dirty.nr_levels, false); e = q_peek(&mq->dirty, mq->dirty.nr_levels, !mq->migrations_allowed);
if (e) { if (e) {
mark_pending(mq, e); mark_pending(mq, e);
q_del(&mq->dirty, e); q_del(&mq->dirty, e);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment