Commit cc197479 authored by Jens Axboe's avatar Jens Axboe Committed by Jens Axboe
Browse files

cfq-iosched: tighten queue request overlap condition



For tagged devices, allow overlap of requests if the idle window
isn't enabled on the current active queue.
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 3ed9a296
...@@ -989,7 +989,8 @@ static struct cfq_queue *cfq_select_queue(struct cfq_data *cfqd) ...@@ -989,7 +989,8 @@ static struct cfq_queue *cfq_select_queue(struct cfq_data *cfqd)
* flight or is idling for a new request, allow either of these * flight or is idling for a new request, allow either of these
* conditions to happen (or time out) before selecting a new queue. * conditions to happen (or time out) before selecting a new queue.
*/ */
if (cfqq->dispatched || timer_pending(&cfqd->idle_slice_timer)) { if (timer_pending(&cfqd->idle_slice_timer) ||
(cfqq->dispatched && cfq_cfqq_idle_window(cfqq))) {
cfqq = NULL; cfqq = NULL;
goto keep_queue; goto keep_queue;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment