block: simplify I/O stat accounting
authorJerome Marchand <jmarchan@redhat.com>
Wed, 22 Apr 2009 12:01:49 +0000 (14:01 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 24 Apr 2009 06:54:21 +0000 (08:54 +0200)
commit42dad7647aec49b3ad20dd0cb832b232a6ae514f
treeb70d4cb7706f2647e65426e24f078ddf14d6e139
parent097102c2d04974bdfcfa16a5f3062d499842139c
block: simplify I/O stat accounting

This simplifies I/O stat accounting switching code and separates it
completely from I/O scheduler switch code.

Requests are accounted according to the state of their request queue
at the time of the request allocation. There is no need anymore to
flush the request queue when switching I/O accounting state.

Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-core.c
block/blk-merge.c
block/blk-sysfs.c
block/blk.h
include/linux/blkdev.h