diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2006-11-14 12:36:03 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-11-14 15:08:50 -0800 |
commit | b369c2cfa47bc0ad495a95fe9a17c9888781d615 (patch) | |
tree | 631cad9e330c0370f5544ae0a805d6335dcfdb88 /drivers | |
parent | a4625085445b86951d8482c0cdd6d52719f7c323 (diff) | |
download | op-kernel-dev-b369c2cfa47bc0ad495a95fe9a17c9888781d615.zip op-kernel-dev-b369c2cfa47bc0ad495a95fe9a17c9888781d615.tar.gz |
[PATCH] 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: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/block/cciss.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index 6ffe2b2..4105c3b 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 */ |