summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2007-04-19 14:32:26 +0200
committerJens Axboe <axboe@nelson.home.kernel.dk>2007-04-30 09:01:22 +0200
commit1be92f2fc7b563db3a8909d2d1c6a6520aeca323 (patch)
treeb3a7fa91a9483315cd86f423925946b3c38cc3c7 /block
parent20e493a8d03b3b2f51b619a453f7bbbebedd6bda (diff)
downloadlinux-exynos-1be92f2fc7b563db3a8909d2d1c6a6520aeca323.tar.gz
linux-exynos-1be92f2fc7b563db3a8909d2d1c6a6520aeca323.tar.bz2
linux-exynos-1be92f2fc7b563db3a8909d2d1c6a6520aeca323.zip
cfq-iosched: never allow an async queue idling
We don't enable it by default, don't let it get enabled during runtime. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block')
-rw-r--r--block/cfq-iosched.c7
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
cfq_update_idle_window(struct cfq_data *cfqd, struct cfq_queue *cfqq,
struct cfq_io_context *cic)
{
- int enable_idle = cfq_cfqq_idle_window(cfqq);
+ int enable_idle;
+
+ if (!cfq_cfqq_sync(cfqq))
+ return;
+
+ enable_idle = cfq_cfqq_idle_window(cfqq);
if (!cic->ioc->task || !cfqd->cfq_slice_idle ||
(cfqd->hw_tag && CIC_SEEKY(cic)))