Commit ba6c35f8 authored by Jens Axboe's avatar Jens Axboe Committed by Adrian Bunk

cciss: fix iostat

cciss needs to call disk_stat_add() for iostat to work.
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
parent f131f70e
...@@ -1218,6 +1218,12 @@ static void cciss_softirq_done(struct request *rq) ...@@ -1218,6 +1218,12 @@ static void cciss_softirq_done(struct request *rq)
complete_buffers(rq->bio, rq->errors); complete_buffers(rq->bio, rq->errors);
if (blk_fs_request(rq)) {
const int rw = rq_data_dir(rq);
disk_stat_add(rq->rq_disk, sectors[rw], rq->nr_sectors);
}
#ifdef CCISS_DEBUG #ifdef CCISS_DEBUG
printk("Done with %p\n", rq); printk("Done with %p\n", rq);
#endif /* CCISS_DEBUG */ #endif /* CCISS_DEBUG */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment