Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d44ec5a authored by Joe Thornber's avatar Joe Thornber Committed by Mike Snitzer
Browse files

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: default avatarJoe Thornber <ejt@redhat.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 78c45607
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1452,6 +1452,7 @@ static void __complete_background_work(struct smq_policy *mq,
		clear_pending(mq, e);
		clear_pending(mq, e);
		if (success) {
		if (success) {
			e->oblock = work->oblock;
			e->oblock = work->oblock;
			e->level = NR_CACHE_LEVELS - 1;
			push(mq, e);
			push(mq, e);
			// h, q, a
			// h, q, a
		} else {
		} else {