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)
commitc86c30706caa02ffe303e6b87d53ef6a077d4cca
treeadafaec4532de7ebbecf8b413ba380a7d2aa9bc7
parent01911c19bea63b1a958b9d9024504c2e9079f155
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