dm cache policy smq: don't do any writebacks unless IDLE
authorJoe Thornber <ejt@redhat.com>
Thu, 11 May 2017 13:09:04 +0000 (09:09 -0400)
committerMike Snitzer <snitzer@redhat.com>
Mon, 15 May 2017 01:54:33 +0000 (21:54 -0400)
commit2e63309507c818e8b631a03f02c363031c007fb7
tree3409b151cf068286da7f0bd4d2a9b15b44139737
parent49b7f768900f4084a65c3689d955b2fceac39e53
dm cache policy smq: don't do any writebacks unless IDLE

If there are no clean blocks to be demoted the writeback will be
triggered at that point.  Preemptively writing back can hurt high IO
load scenarios.

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