X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fmd%2Fraid5.c;h=43f231a467d5cb0137f15bd5568de80993a0bb08;hb=e3ee3b78f83688a0ae4315e8be71b2eac559904a;hp=4698d5f79575dd00a4bd03c355e86881654d0654;hpb=4b5c7ae83704320e2afb0912f4c42eadabc7535b;p=linux-2.6 diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 4698d5f795..43f231a467 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -1653,6 +1653,7 @@ static int run (mddev_t *mddev) /* device size must be a multiple of chunk size */ mddev->size &= ~(mddev->chunk_size/1024 -1); + mddev->resync_max_sectors = mddev->size << 1; if (!conf->chunk_size || conf->chunk_size % 4) { printk(KERN_ERR "raid5: invalid chunk size %d for %s\n",