summaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2011-07-27 03:00:36 +0200
committerNeilBrown <neilb@suse.de>2011-07-27 03:00:36 +0200
commit700c72138938cf428c74379806886c6b017d6295 (patch)
tree93ca6eb628d36e841131aa62a85b45d16b3f45fa /drivers/md/md.c
parentmd/raid10: Make use of new recovery_disabled handling (diff)
downloadlinux-700c72138938cf428c74379806886c6b017d6295.tar.xz
linux-700c72138938cf428c74379806886c6b017d6295.zip
md/raid10: Improve decision on whether to fail a device with a read error.
Normally we would fail a device with a READ error. However if doing so causes the array to fail, it is better to leave the device in place and just return the read error to the caller. The current test for decide if the array will fail is overly simplistic. We have a function 'enough' which can tell if the array is failed or not, so use it to guide the decision. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/md.c')
0 files changed, 0 insertions, 0 deletions