]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid10: avoid reading known bad blocks during resync/recovery.
authorNeilBrown <neilb@suse.de>
Thu, 28 Jul 2011 01:39:24 +0000 (11:39 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 28 Jul 2011 01:39:24 +0000 (11:39 +1000)
commitcce3c8a72d7a253fcd54e8d7a5393c68f2dc2d23
tree6843d537ecdfda6c03860455c187b775bc6dec97
parente6b1f34fdf291c31bd16767e7e559572711b99ba
md/raid10: avoid reading known bad blocks during resync/recovery.

During resync/recovery limit the size of the request to avoid
reading into a bad block that does not start at-or-before the current
read address.

Similarly if there is a bad block at this address, don't allow the
current request to extend beyond the end of that bad block.

Now that we don't ever read from known bad blocks, it is safe to allow
devices with those blocks into the array.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid10.c