Skip to content
Commit 40c356ce authored by NeilBrown's avatar NeilBrown
Browse files

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: default avatarNeilBrown <neilb@suse.de>
parent 8dbed5ce
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment