The patch titled md: make sure read errors are auto-corrected during a 'check' resync in raid1 has been removed from the -mm tree. Its filename was md-make-sure-read-errors-are-auto-corrected-during-a-check-resync-in-raid1.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: md: make sure read errors are auto-corrected during a 'check' resync in raid1 From: NeilBrown <neilb@xxxxxxx> Whenever a read error is found, we should attempt to overwrite with correct data to 'fix' it. However when do a 'check' pass (which compares data blocks that are successfully read, but doesn't normally overwrite) we don't do that. We should. Signed-off-by: Neil Brown <neilb@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/md/raid1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN drivers/md/raid1.c~md-make-sure-read-errors-are-auto-corrected-during-a-check-resync-in-raid1 drivers/md/raid1.c --- a/drivers/md/raid1.c~md-make-sure-read-errors-are-auto-corrected-during-a-check-resync-in-raid1 +++ a/drivers/md/raid1.c @@ -1214,7 +1214,8 @@ static void sync_request_write(mddev_t * j = 0; if (j >= 0) mddev->resync_mismatches += r1_bio->sectors; - if (j < 0 || test_bit(MD_RECOVERY_CHECK, &mddev->recovery)) { + if (j < 0 || (test_bit(MD_RECOVERY_CHECK, &mddev->recovery) + && test_bit(BIO_UPTODATE, &sbio->bi_flags))) { sbio->bi_end_io = NULL; rdev_dec_pending(conf->mirrors[i].rdev, mddev); } else { _ Patches currently in -mm which might be from neilb@xxxxxxx are origin.patch git-md-accel.patch ecryptfs-allow-lower-fs-to-interpret-attr_kill_sid.patch knfsd-only-set-attr_kill_sid-if-attr_mode-isnt-being-explicitly-set.patch vfs-make-notify_change-pass-attr_kill_sid-to-setattr-operations.patch sysctl-remove-broken-sunrpc-debug-binary-sysctls.patch exportfs-add-fid-type.patch exportfs-add-new-methods.patch ext2-new-export-ops.patch ext3-new-export-ops.patch ext4-new-export-ops.patch efs-new-export-ops.patch jfs-new-export-ops.patch ntfs-new-export-ops.patch fat-new-export-ops.patch isofs-new-export-ops.patch shmem-new-export-ops.patch reiserfs-new-export-ops.patch gfs2-new-export-ops.patch ocfs2-new-export-ops.patch exportfs-remove-old-methods.patch exportfs-make-struct-export_operations-const.patch exportfs-update-documentation.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html