]> git.baikalelectronics.ru Git - kernel.git/commit
dm cache: simplify the IDLE vs BUSY state calculation
authorJoe Thornber <ejt@redhat.com>
Thu, 11 May 2017 13:07:16 +0000 (09:07 -0400)
committerMike Snitzer <snitzer@redhat.com>
Mon, 15 May 2017 01:54:33 +0000 (21:54 -0400)
commit04a9eff5d785fa9c09110fb46d2571a465c6c9a0
treecfd9685c74734879c00ab2861498e64de35bcd5e
parent65e192f0d0040746ea6f723c3890f6f86dd06dca
dm cache: simplify the IDLE vs BUSY state calculation

Drop the MODERATE state since it wasn't buying us much.

Also, in check_migrations(), prepare for the next commit ("dm cache
policy smq: don't do any writebacks unless IDLE") by deferring to the
policy to make the final decision on whether writebacks can be
serviced.

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