]> git.baikalelectronics.ru Git - kernel.git/commit
dm cache: track all IO to the cache rather than just the origin device's IO
authorJoe Thornber <ejt@redhat.com>
Thu, 11 May 2017 12:22:31 +0000 (08:22 -0400)
committerMike Snitzer <snitzer@redhat.com>
Mon, 15 May 2017 01:54:33 +0000 (21:54 -0400)
commit65e192f0d0040746ea6f723c3890f6f86dd06dca
tree891165d167eedd13ab433a86377d9f46b2d44e97
parentb4c4aea1e3d682f2bea390d03088f76c25861164
dm cache: track all IO to the cache rather than just the origin device's IO

IO tracking used to throttle writebacks when the origin device is busy.

Even if all the IO is going to the fast device, writebacks can
significantly degrade performance.  So track all IO to gauge whether the
cache is busy or not.

Otherwise, synthetic IO tests (e.g. fio) that might send all IO to the
fast device wouldn't cause writebacks to get throttled.

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