diff options
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r-- | drivers/md/raid5.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 5899f211515f..ae16794bef20 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c | |||
@@ -3396,10 +3396,11 @@ static int make_request(struct request_queue *q, struct bio * bi) | |||
3396 | 3396 | ||
3397 | md_write_start(mddev, bi); | 3397 | md_write_start(mddev, bi); |
3398 | 3398 | ||
3399 | cpu = disk_stat_lock(); | 3399 | cpu = part_stat_lock(); |
3400 | disk_stat_inc(cpu, mddev->gendisk, ios[rw]); | 3400 | part_stat_inc(cpu, &mddev->gendisk->part0, ios[rw]); |
3401 | disk_stat_add(cpu, mddev->gendisk, sectors[rw], bio_sectors(bi)); | 3401 | part_stat_add(cpu, &mddev->gendisk->part0, sectors[rw], |
3402 | disk_stat_unlock(); | 3402 | bio_sectors(bi)); |
3403 | part_stat_unlock(); | ||
3403 | 3404 | ||
3404 | if (rw == READ && | 3405 | if (rw == READ && |
3405 | mddev->reshape_position == MaxSector && | 3406 | mddev->reshape_position == MaxSector && |