dm flakey: add an "error_reads" option
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 18 Apr 2023 19:56:41 +0000 (15:56 -0400)
committerMike Snitzer <snitzer@kernel.org>
Wed, 19 Apr 2023 15:13:43 +0000 (11:13 -0400)
commitaa7d7bc99fed71664e9a241b32294ee15a88d938
tree730a8a5b87dff835dca812bd95ffbc7d575e9965
parente3675dc1e7ea2e4e5a6527fa7068e9fcbc2475cc
dm flakey: add an "error_reads" option

dm-flakey returns error on reads if no other argument is specified.
This commit simplifies associated logic while formalizing an
"error_reads" argument and an ERROR_READS flag.

If no argument is specified, set ERROR_READS flag so that it behaves
just like before this commit.

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