diff options
-rw-r--r-- | block/cfq-iosched.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 839086dcb0af..df82755ac40b 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c | |||
@@ -1603,7 +1603,12 @@ static void | |||
1603 | cfq_update_idle_window(struct cfq_data *cfqd, struct cfq_queue *cfqq, | 1603 | cfq_update_idle_window(struct cfq_data *cfqd, struct cfq_queue *cfqq, |
1604 | struct cfq_io_context *cic) | 1604 | struct cfq_io_context *cic) |
1605 | { | 1605 | { |
1606 | int enable_idle = cfq_cfqq_idle_window(cfqq); | 1606 | int enable_idle; |
1607 | |||
1608 | if (!cfq_cfqq_sync(cfqq)) | ||
1609 | return; | ||
1610 | |||
1611 | enable_idle = cfq_cfqq_idle_window(cfqq); | ||
1607 | 1612 | ||
1608 | if (!cic->ioc->task || !cfqd->cfq_slice_idle || | 1613 | if (!cic->ioc->task || !cfqd->cfq_slice_idle || |
1609 | (cfqd->hw_tag && CIC_SEEKY(cic))) | 1614 | (cfqd->hw_tag && CIC_SEEKY(cic))) |