]> git.baikalelectronics.ru Git - kernel.git/commit
dm cache: be much more aggressive about promoting writes to discarded blocks
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)
commit3edd5b034a4080a14be5ac349322bdf5aec51302
treeadafaec4532de7ebbecf8b413ba380a7d2aa9bc7
parentc65213fb678a1b19d10ea657ecb302e09331dc9b
dm cache: be much more aggressive about promoting writes to discarded blocks

Previously these promotions only got priority if there were unused cache
blocks.  Now we give them priority if there are any clean blocks in the
cache.

The fio_soak_test in the device-mapper-test-suite now gives uniform
performance across subvolumes (~16 seconds).

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-cache-policy-mq.c