summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2021-06-25 15:33:02 -0400
committerMike Snitzer <snitzer@redhat.com>2021-06-25 16:04:01 -0400
commit95b88f4d71cb953e02206be3c757083601391a0f (patch)
tree5330af07d1fdf5a5c2edb48d07fc377b704c532f /block
parentdc4fa29fe445933f51e08674f3b325547ba52de1 (diff)
downloadlinux-stable-95b88f4d71cb953e02206be3c757083601391a0f.tar.gz
linux-stable-95b88f4d71cb953e02206be3c757083601391a0f.tar.bz2
linux-stable-95b88f4d71cb953e02206be3c757083601391a0f.zip
dm writecache: pause writeback if cache full and origin being written directly
Implementation reuses dm_io_tracker, that until now was only used by dm-cache, to track if any writes were issued directly to the origin (due to cache being full) within the last second. If so writeback is paused for a second. This change improves performance for when the cache is full and IO is issued directly to the origin device (rather than through the cache). Depends-on: d53f1fafec9d ("dm writecache: do direct write if the cache is full") Suggested-by: Joe Thornber <ejt@redhat.com> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions