### Comments for ChangeSet Instead of testing last_used (which could change in unusual circumstances) we test against the bdev that we read frmo, and don't write back to there. ----------- Diffstat output ------------ ./drivers/md/raid1.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff ./drivers/md/raid1.c~current~ ./drivers/md/raid1.c --- ./drivers/md/raid1.c~current~ 2003-05-27 11:58:20.000000000 +1000 +++ ./drivers/md/raid1.c 2003-05-27 11:58:22.000000000 +1000 @@ -825,7 +825,7 @@ static void sync_request_write(mddev_t * if (!conf->mirrors[i].rdev || conf->mirrors[i].rdev->faulty) continue; - if (i == conf->last_used) + if (conf->mirrors[i].rdev->bdev == bio->bi_bdev) /* * we read from here, no need to write */ - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html