]> 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)
commite6425cf37663c37576ac9fc6ad742da0fa3fd355
tree891165d167eedd13ab433a86377d9f46b2d44e97
parent9f1cfa300a6c66e57534de453e4675f7e407be36
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