diff options
Diffstat (limited to 'drivers/md/multipath.c')
-rw-r--r-- | drivers/md/multipath.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/md/multipath.c b/drivers/md/multipath.c index 182f5a94cdc5..8bb8794129b3 100644 --- a/drivers/md/multipath.c +++ b/drivers/md/multipath.c | |||
@@ -159,10 +159,11 @@ static int multipath_make_request (struct request_queue *q, struct bio * bio) | |||
159 | mp_bh->master_bio = bio; | 159 | mp_bh->master_bio = bio; |
160 | mp_bh->mddev = mddev; | 160 | mp_bh->mddev = mddev; |
161 | 161 | ||
162 | cpu = disk_stat_lock(); | 162 | cpu = part_stat_lock(); |
163 | disk_stat_inc(cpu, mddev->gendisk, ios[rw]); | 163 | part_stat_inc(cpu, &mddev->gendisk->part0, ios[rw]); |
164 | disk_stat_add(cpu, mddev->gendisk, sectors[rw], bio_sectors(bio)); | 164 | part_stat_add(cpu, &mddev->gendisk->part0, sectors[rw], |
165 | disk_stat_unlock(); | 165 | bio_sectors(bio)); |
166 | part_stat_unlock(); | ||
166 | 167 | ||
167 | mp_bh->path = multipath_map(conf); | 168 | mp_bh->path = multipath_map(conf); |
168 | if (mp_bh->path < 0) { | 169 | if (mp_bh->path < 0) { |