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)
commit701e03e4e180f0cd97d4139a32e2b2d879d12da2
tree891165d167eedd13ab433a86377d9f46b2d44e97
parent6cf4cc8f8b3b7bc9e3c04a7eab44b985d50029fc
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