]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
cfq-iosched: requests "in flight" vs "in driver" clarification
authorCorrado Zoccolo <czoccolo@gmail.com>
Sun, 28 Feb 2010 18:45:05 +0000 (19:45 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Sun, 28 Feb 2010 18:45:05 +0000 (19:45 +0100)
commit53c583d2269851de9df1c2e992cb2f7f124a5f55
tree993a4f67663b4457771b7069513ad6e0471223b3
parent87c3a922a7ee8cfb9ab837f4ae38c993e9b30711
cfq-iosched: requests "in flight" vs "in driver" clarification

Counters for requests "in flight" and "in driver" are used asymmetrically
in cfq_may_dispatch, and have slightly different meaning.
We split the rq_in_flight counter (was sync_flight) to count both sync
and async requests, in order to use this one, which is more accurate in
some corner cases.
The rq_in_driver counter is coalesced, since individual sync/async counts
are not used any more.

Signed-off-by: Corrado Zoccolo <czoccolo@gmail.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/cfq-iosched.c