OSDN Git Service

dm delay: add flush as a third class of IO
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 16 Apr 2018 22:33:14 +0000 (00:33 +0200)
committerMike Snitzer <snitzer@redhat.com>
Fri, 27 Jul 2018 19:24:19 +0000 (15:24 -0400)
commitcda6b5ab7f5935565ed5b9bbc385bd1d0a3feb75
treef9874d8e3e6d0f6dbefcba98c6835f37694f6009
parent3876ac76f02ac2a7b3d96f813c0ee1070e7a8c8e
dm delay: add flush as a third class of IO

Add a new class for dm-delay that delays flush requests.  Previously,
flushes were delayed as writes, but it caused problems if the user
needed to create a device with one or a few slow sectors for the purpose
of testing - all flushes would be forwarded to this device and delayed,
and that skews the test results.  Fix this by allowing to select 0 delay
for flushes.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Documentation/device-mapper/delay.txt
drivers/md/dm-delay.c