projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78c4560
)
dm cache policy smq: put newly promoted entries at the top of the multiqueue
author
Joe Thornber
<ejt@redhat.com>
Thu, 11 May 2017 09:11:06 +0000
(
05:11
-0400)
committer
Mike Snitzer
<snitzer@redhat.com>
Mon, 15 May 2017 01:54:33 +0000
(21:54 -0400)
This stops entries bouncing in and out of the cache quickly.
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-cache-policy-smq.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-cache-policy-smq.c
b/drivers/md/dm-cache-policy-smq.c
index
5aa8f43
..
54421a8
100644
(file)
--- 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 {