]> git.baikalelectronics.ru Git - kernel.git/commit
dm cache policy mq: implement writeback_work() and mq_{set,clear}_dirty()
authorJoe Thornber <ejt@redhat.com>
Thu, 24 Oct 2013 18:10:28 +0000 (14:10 -0400)
committerMike Snitzer <snitzer@redhat.com>
Sat, 9 Nov 2013 23:20:25 +0000 (18:20 -0500)
commitc75aa961b2d9e867d80f9e4eedf0ab16a186cc2c
tree613f9334c9d85702ff89168f587d4d90d24378b9
parentc76d76982be353ad705ce23848928a960113ccaa
dm cache policy mq: implement writeback_work() and mq_{set,clear}_dirty()

There are now two multiqueues for in cache blocks.  A clean one and a
dirty one.

writeback_work comes from the dirty one.  Demotions come from the clean
one.

There are two benefits:
- Performance improvement, since demoting a clean block is a noop.
- The cache cleans itself when io load is light.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Documentation/device-mapper/cache-policies.txt
drivers/md/dm-cache-policy-mq.c