diff options
-rw-r--r-- | drivers/md/raid1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 7fbb60883280..6c10f28bc25e 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c | |||
@@ -284,7 +284,8 @@ static int raid1_end_read_request(struct bio *bio, unsigned int bytes_done, int | |||
284 | * user-side. So if something waits for IO, then it will | 284 | * user-side. So if something waits for IO, then it will |
285 | * wait for the 'master' bio. | 285 | * wait for the 'master' bio. |
286 | */ | 286 | */ |
287 | set_bit(R1BIO_Uptodate, &r1_bio->state); | 287 | if (uptodate) |
288 | set_bit(R1BIO_Uptodate, &r1_bio->state); | ||
288 | 289 | ||
289 | raid_end_bio_io(r1_bio); | 290 | raid_end_bio_io(r1_bio); |
290 | } else { | 291 | } else { |