]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] raid5 BIO_UPTODATE set
authorJens Axboe <axboe@suse.de>
Mon, 30 Sep 2002 05:35:16 +0000 (22:35 -0700)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Mon, 30 Sep 2002 05:35:16 +0000 (22:35 -0700)
These days we only require a clear of BIO_UPTODATE on -EIO, we don't set
it on success. This breaks raid5. It appears to clear BIO_UPTODATE fine
but doesn't start out with it set.

drivers/md/raid5.c

index 19d755f51befb59e98c2a0b8b8dde6b8ea9ef4fe..9f0d437af4b550f8f6d07b43470c180745655817 100644 (file)
@@ -1181,7 +1181,7 @@ static void handle_stripe(struct stripe_head *sh)
                                PRINTK("for %ld schedule op %ld on disc %d\n", sh->sector, bi->bi_rw, i);
                                atomic_inc(&sh->count);
                                bi->bi_sector = sh->sector;
-                               bi->bi_flags = 0;
+                               bi->bi_flags = 1 << BIO_UPTODATE;
                                bi->bi_vcnt = 1;        
                                bi->bi_idx = 0;
                                bi->bi_io_vec = &sh->dev[i].vec;