|
@@ -1541,11 +1541,12 @@ static void sync_request_write(mddev_t *mddev, r10bio_t *r10_bio)
|
|
|
if (j == vcnt)
|
|
|
continue;
|
|
|
mddev->resync_mismatches += r10_bio->sectors;
|
|
|
+ if (test_bit(MD_RECOVERY_CHECK, &mddev->recovery))
|
|
|
+ /* Don't fix anything. */
|
|
|
+ continue;
|
|
|
}
|
|
|
- if (test_bit(MD_RECOVERY_CHECK, &mddev->recovery))
|
|
|
- /* Don't fix anything. */
|
|
|
- continue;
|
|
|
- /* Ok, we need to write this bio
|
|
|
+ /* Ok, we need to write this bio, either to correct an
|
|
|
+ * inconsistency or to correct an unreadable block.
|
|
|
* First we need to fixup bv_offset, bv_len and
|
|
|
* bi_vecs, as the read request might have corrupted these
|
|
|
*/
|