]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Fix RAID1 recovery
authorAndrew Morton <akpm@osdl.org>
Sun, 9 Nov 2003 23:18:26 +0000 (15:18 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Sun, 9 Nov 2003 23:18:26 +0000 (15:18 -0800)
From: Mike Tran <mhtran@us.ibm.com>

This fixes the RAID1 recovery problems; it seems to be a simple thinko:
sync_request_write() is passing "ok=0" into md_done_sync().  Clearly, `ok'
should be true here.

(acked by neilb)

drivers/md/raid1.c

index 26e80eabaf27bef6340f2b2838fcb57a89f2ccb7..99493d6d9ae0fcbb67df1d6a8822b7d658d951cb 100644 (file)
@@ -841,7 +841,7 @@ static void sync_request_write(mddev_t *mddev, r1bio_t *r1_bio)
        }
 
        if (atomic_dec_and_test(&r1_bio->remaining)) {
-               md_done_sync(mddev, r1_bio->master_bio->bi_size >> 9, 0);
+               md_done_sync(mddev, r1_bio->master_bio->bi_size >> 9, 1);
                put_buf(r1_bio);
        }
 }