commit | 1f68f0c4b677ccd6935ff61e4e6888787505f8dc | [log] [tgz] |
---|---|---|
author | NeilBrown <neilb@suse.de> | Thu Jul 28 11:31:48 2011 +1000 |
committer | NeilBrown <neilb@suse.de> | Thu Jul 28 11:31:48 2011 +1000 |
tree | aaff73efbc3fb7b6092eb2106e142e1684c4b554 | |
parent | 0b7d83865cb7a60b1768212c1e60b8fd7c280506 [diff] |
md/raid1: avoid writing to known-bad blocks on known-bad drives. If we have seen any write error on a drive, then don't write to any known-bad blocks on that drive. If necessary, we divide the write request up into pieces just like we do for reads, so each piece is either all written or all not written to any given drive. Signed-off-by: NeilBrown <neilb@suse.de> Reviewed-by: Namhyung Kim <namhyung@gmail.com>