]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
md/raid1: add error handling of read error from FailFast device
authorGioh Kim <gi-oh.kim@profitbricks.com>
Wed, 2 May 2018 11:08:11 +0000 (13:08 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 1 Mar 2019 13:20:42 +0000 (14:20 +0100)
commit7b42e348d2e99673666d1bb3f689729614fea366
treef7046fd80480ce6fc418c939d35801f06924ac7e
parent58cb074ca6c09177f1145f2a3d8b1a603c8e38ae
md/raid1: add error handling of read error from FailFast device

BugLink: http://bugs.launchpad.net/bugs/1815234
[ Upstream commit b33d10624fdc15cdf1495f3f00481afccec76783 ]

Current handle_read_error() function calls fix_read_error()
only if md device is RW and rdev does not include FailFast flag.
It does not handle a read error from a RW device including
FailFast flag.

I am not sure it is intended. But I found that write IO error
sets rdev faulty. The md module should handle the read IO error and
write IO error equally. So I think read IO error should set rdev faulty.

Signed-off-by: Gioh Kim <gi-oh.kim@profitbricks.com>
Reviewed-by: Jack Wang <jinpu.wang@profitbricks.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/md/raid1.c