projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a462508
)
[PATCH] cciss: fix iostat
author
Jens Axboe
<jens.axboe@oracle.com>
Tue, 14 Nov 2006 11:36:03 +0000
(12:36 +0100)
committer
Linus 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
patch
|
blob
|
history
diff --git
a/drivers/block/cciss.c
b/drivers/block/cciss.c
index 6ffe2b2bdacce4f283d628088264593fa2b6c1d1..4105c3bf34764da399d29e638294ead0e07a3973 100644
(file)
--- 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 */