mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-17 01:34:00 +08:00
[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>
This commit is contained in:
parent
a462508544
commit
b369c2cfa4
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user