]> err.no Git - linux-2.6/commitdiff
[PATCH] cciss: fix iostat
authorJens Axboe <jens.axboe@oracle.com>
Tue, 14 Nov 2006 11:36:03 +0000 (12:36 +0100)
committerLinus Torvalds <torvalds@woody.osdl.org>
Tue, 14 Nov 2006 23:08:50 +0000 (15:08 -0800)
cciss needs to call disk_stat_add() for iostat to work.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/block/cciss.c

index 6ffe2b2bdacce4f283d628088264593fa2b6c1d1..4105c3bf34764da399d29e638294ead0e07a3973 100644 (file)
@@ -1300,6 +1300,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 */