提交 4d44ec5a 编写于 作者: J Joe Thornber 提交者: Mike Snitzer

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: NJoe Thornber <ejt@redhat.com>
Signed-off-by: NMike Snitzer <snitzer@redhat.com>
上级 78c45607
...@@ -1452,6 +1452,7 @@ static void __complete_background_work(struct smq_policy *mq, ...@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册