dm-flakey: Fix corrupt_bio_byte setup checks
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 11 Jun 2025 19:12:20 +0000 (15:12 -0400)
committerMikulas Patocka <mpatocka@redhat.com>
Mon, 23 Jun 2025 10:04:52 +0000 (12:04 +0200)
commit75227ed6812cb869380c8fb6d41a845ae571781e
tree5e0559c0617e34af45adb6be944df86c67ef6348
parent8ca719b81987be690f197e82fdb030580c0a07f3
dm-flakey: Fix corrupt_bio_byte setup checks

Fix the error_reads mode - it's incompatible with corrupt_bio_byte, but
that's only enabled if corrupt_bio_byte is nonzero.

Cc: Benjamin Marzinski <bmarzins@redhat.com>
Cc: Mikulas Patocka <mpatocka@redhat.com>
Cc: Mike Snitzer <snitzer@kernel.org>
Cc: dm-devel@lists.linux.dev
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Reviewed-by: Benjamin Marzinski <bmarzins@redhat.com>
Fixes: 19da6b2c9e8e ("dm-flakey: Clean up parsing messages")
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-flakey.c