cfq-iosched: drain device queue before switching to a sync queue
authorJens Axboe <jens.axboe@oracle.com>
Fri, 3 Jul 2009 10:57:48 +0000 (12:57 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 11 Sep 2009 12:33:30 +0000 (14:33 +0200)
commit5ad531db6e0f3c3c985666e83d3c1c4d53acccf9
treef5bd394c493f425e12fc6991d2b7adf2121ba506
parentda6c5c720c52cc717124f8f0830b710ea6a092fd
cfq-iosched: drain device queue before switching to a sync queue

To lessen the impact of async IO on sync IO, let the device drain of
any async IO in progress when switching to a sync cfqq that has idling
enabled.

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