diff options
Diffstat (limited to 'block/cfq-iosched.c')
-rw-r--r-- | block/cfq-iosched.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 47abd24617be..2c1086acddfa 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c | |||
@@ -2392,8 +2392,9 @@ cfq_should_preempt(struct cfq_data *cfqd, struct cfq_queue *new_cfqq, | |||
2392 | if (cfq_class_idle(cfqq)) | 2392 | if (cfq_class_idle(cfqq)) |
2393 | return true; | 2393 | return true; |
2394 | 2394 | ||
2395 | if (cfqd->serving_type == SYNC_NOIDLE_WORKLOAD | 2395 | if (cfqd->serving_type == SYNC_NOIDLE_WORKLOAD && |
2396 | && new_cfqq->service_tree == cfqq->service_tree) | 2396 | cfqq_type(new_cfqq) == SYNC_NOIDLE_WORKLOAD && |
2397 | new_cfqq->service_tree->count == 1) | ||
2397 | return true; | 2398 | return true; |
2398 | 2399 | ||
2399 | /* | 2400 | /* |