]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid10: Improve decision on whether to fail a device with a read error.
authorNeilBrown <neilb@suse.de>
Wed, 27 Jul 2011 01:00:36 +0000 (11:00 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 27 Jul 2011 01:00:36 +0000 (11:00 +1000)
commitf01668221a7a51266e334a4608a88f36625d7abe
tree93ca6eb628d36e841131aa62a85b45d16b3f45fa
parentd7b0cf334f5b7b6eba69d43d6cccf922ba61d366
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>
drivers/md/raid10.c