summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2006-12-04 14:30:27 +0100
committerAdrian Bunk <bunk@stusta.de>2006-12-04 14:30:27 +0100
commitba6c35f8887b3c483d8f63639f3959c163f05e72 (patch)
tree994e5ca010855c4ecfbd74b548877baff1a9458f
parentf131f70efa075828d573d1200abb8ebe3d8997f0 (diff)
cciss: fix iostat
cciss needs to call disk_stat_add() for iostat to work. Signed-off-by: Jens Axboe <jens.axboe@oracle.com> Signed-off-by: Adrian Bunk <bunk@stusta.de>
-rw-r--r--drivers/block/cciss.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index 71552e1fc22b..93e23d67087d 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -1218,6 +1218,12 @@ static void cciss_softirq_done(struct request *rq)
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
printk("Done with %p\n", rq);
#endif /* CCISS_DEBUG */