From: Jens Axboe Date: Tue, 14 Nov 2006 11:36:03 +0000 (+0100) Subject: [PATCH] cciss: fix iostat X-Git-Tag: v2.6.19-rc6~12 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b369c2cfa47bc0ad495a95fe9a17c9888781d615;p=linux-2.6-omap-h63xx.git [PATCH] cciss: fix iostat cciss needs to call disk_stat_add() for iostat to work. Signed-off-by: Jens Axboe Signed-off-by: Linus Torvalds --- diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index 6ffe2b2bdac..4105c3bf347 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c @@ -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 */