dm flakey: fix reads to be issued if drop_writes configured
authorMike Snitzer <snitzer@redhat.com>
Thu, 25 Aug 2016 01:12:58 +0000 (21:12 -0400)
committerWilly Tarreau <w@1wt.eu>
Fri, 10 Feb 2017 10:04:06 +0000 (11:04 +0100)
commit46049e5ca6b3ef22c2a189a7815b849204483d92
tree1e4397ec5ef16c38b1f233480dce8d47aa64f117
parent04be31f5be113de38b80e307e3c6f8468f3ff25e
dm flakey: fix reads to be issued if drop_writes configured

commit 299f6230bc6d0ccd5f95bb0fb865d80a9c7d5ccc upstream.

v4.8-rc3 commit 99f3c90d0d ("dm flakey: error READ bios during the
down_interval") overlooked the 'drop_writes' feature, which is meant to
allow reads to be issued rather than errored, during the down_interval.

Fixes: 99f3c90d0d ("dm flakey: error READ bios during the down_interval")
Reported-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/md/dm-flakey.c