diff options
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/raid1.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 04418e10d1dc..3cb0872a845d 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c | |||
@@ -1402,6 +1402,9 @@ static void raid1d(mddev_t *mddev) | |||
1402 | clear_bit(R1BIO_BarrierRetry, &r1_bio->state); | 1402 | clear_bit(R1BIO_BarrierRetry, &r1_bio->state); |
1403 | clear_bit(R1BIO_Barrier, &r1_bio->state); | 1403 | clear_bit(R1BIO_Barrier, &r1_bio->state); |
1404 | for (i=0; i < conf->raid_disks; i++) | 1404 | for (i=0; i < conf->raid_disks; i++) |
1405 | if (r1_bio->bios[i]) | ||
1406 | atomic_inc(&r1_bio->remaining); | ||
1407 | for (i=0; i < conf->raid_disks; i++) | ||
1405 | if (r1_bio->bios[i]) { | 1408 | if (r1_bio->bios[i]) { |
1406 | struct bio_vec *bvec; | 1409 | struct bio_vec *bvec; |
1407 | int j; | 1410 | int j; |