[BLOCK] Update read/write block io statistics at completion time
authorJens Axboe <axboe@suse.de>
Tue, 1 Nov 2005 07:35:42 +0000 (08:35 +0100)
committerJens Axboe <axboe@suse.de>
Tue, 1 Nov 2005 07:35:42 +0000 (08:35 +0100)
commitd72d904a5367ad4ca3f2c9a2ce8c3a68f0b28bf0
treeb41aaa3ceb0aa40090adda140d143e72fd16d587
parentd83c671fb7023f69a9582e622d01525054f23b66
[BLOCK] Update read/write block io statistics at completion time

Right now we do it at queueing time, which works alright for reads
(since they are usually sync), but not for async writes since we can
queue io a lot faster than we can complete it. This makes the vmstat
output look extremely bursty.

Signed-off-by: Jens Axboe <axboe@suse.de>
drivers/block/ll_rw_blk.c