diff options
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r-- | drivers/md/raid10.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 5ec80da0a9d7..5f990133f5ef 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c | |||
@@ -844,10 +844,11 @@ static int make_request(struct request_queue *q, struct bio * bio) | |||
844 | */ | 844 | */ |
845 | wait_barrier(conf); | 845 | wait_barrier(conf); |
846 | 846 | ||
847 | cpu = disk_stat_lock(); | 847 | cpu = part_stat_lock(); |
848 | disk_stat_inc(cpu, mddev->gendisk, ios[rw]); | 848 | part_stat_inc(cpu, &mddev->gendisk->part0, ios[rw]); |
849 | disk_stat_add(cpu, mddev->gendisk, sectors[rw], bio_sectors(bio)); | 849 | part_stat_add(cpu, &mddev->gendisk->part0, sectors[rw], |
850 | disk_stat_unlock(); | 850 | bio_sectors(bio)); |
851 | part_stat_unlock(); | ||
851 | 852 | ||
852 | r10_bio = mempool_alloc(conf->r10bio_pool, GFP_NOIO); | 853 | r10_bio = mempool_alloc(conf->r10bio_pool, GFP_NOIO); |
853 | 854 | ||