From: Jens Axboe Date: Thu, 19 Apr 2007 12:32:26 +0000 (+0200) Subject: cfq-iosched: never allow an async queue idling X-Git-Tag: v2.6.22-rc1~1108^2^2~5 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1be92f2fc7b563db3a8909d2d1c6a6520aeca323;p=linux-2.6 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 --- diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 839086dcb0..df82755ac4 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)))