dm writecache: make writeback pause configurable
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 28 Jun 2021 13:59:37 +0000 (09:59 -0400)
committerMike Snitzer <snitzer@redhat.com>
Mon, 28 Jun 2021 20:30:13 +0000 (16:30 -0400)
commit5c0de3d72f8c05678ed769bea24e98128f7ab570
tree9d41547dfdf367e5969af1244180d48564a1cc5b
parent95b88f4d71cb953e02206be3c757083601391a0f
dm writecache: make writeback pause configurable

Commit 95b88f4d71cb953e02206be3c757083601391a0f ("dm writecache: pause
writeback if cache full and origin being written directly") introduced a
code that pauses cache flushing if we are issuing writes directly to the
origin.

Improve that initial commit by making the timeout code configurable
(via the option "pause_writeback"). Also change the default from 1s to
3s because it performed better.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Documentation/admin-guide/device-mapper/writecache.rst
drivers/md/dm-io-tracker.h
drivers/md/dm-writecache.c