aboutsummaryrefslogtreecommitdiffstats
path: root/block/cfq-iosched.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/cfq-iosched.c')
-rw-r--r--block/cfq-iosched.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index 9eba291eb6fd..909479cfa0af 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -3402,6 +3402,10 @@ static bool cfq_should_wait_busy(struct cfq_data *cfqd, struct cfq_queue *cfqq)
3402{ 3402{
3403 struct cfq_io_context *cic = cfqd->active_cic; 3403 struct cfq_io_context *cic = cfqd->active_cic;
3404 3404
3405 /* If the queue already has requests, don't wait */
3406 if (!RB_EMPTY_ROOT(&cfqq->sort_list))
3407 return false;
3408
3405 /* If there are other queues in the group, don't wait */ 3409 /* If there are other queues in the group, don't wait */
3406 if (cfqq->cfqg->nr_cfqq > 1) 3410 if (cfqq->cfqg->nr_cfqq > 1)
3407 return false; 3411 return false;