From: Joe Thornber Date: Thu, 11 May 2017 09:11:06 +0000 (-0400) Subject: dm cache policy smq: put newly promoted entries at the top of the multiqueue X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4d44ec5ab751be63c5d348f13294304d87baa8c3;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git dm cache policy smq: put newly promoted entries at the top of the multiqueue This stops entries bouncing in and out of the cache quickly. Signed-off-by: Joe Thornber Signed-off-by: Mike Snitzer --- diff --git a/drivers/md/dm-cache-policy-smq.c b/drivers/md/dm-cache-policy-smq.c index 5aa8f43856c5..54421a846a0c 100644 --- a/drivers/md/dm-cache-policy-smq.c +++ b/drivers/md/dm-cache-policy-smq.c @@ -1452,6 +1452,7 @@ static void __complete_background_work(struct smq_policy *mq, clear_pending(mq, e); if (success) { e->oblock = work->oblock; + e->level = NR_CACHE_LEVELS - 1; push(mq, e); // h, q, a } else {