cfq-iosched: fix issue with rq-rq merging and fifo list ordering
authorJens Axboe <jens.axboe@oracle.com>
Mon, 5 Oct 2009 09:03:39 +0000 (11:03 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 5 Oct 2009 09:03:39 +0000 (11:03 +0200)
commit30996f40bffe73f05abb92a4cec254befa8cecf7
tree2ce2cf9ed92aff3f930b7553711f4b439d6cb89e
parent374576a8b6f865022c0fd1ca62396889b23d66dd
cfq-iosched: fix issue with rq-rq merging and fifo list ordering

cfq uses rq->start_time as the fifo indicator, but that field may
get modified prior to cfq doing it's fifo list adjustment when
a request gets merged with another request. This can cause the
fifo list to become unordered.

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