Skip to content

Commit

Permalink
cfq-iosched: never allow an async queue idling
Browse files Browse the repository at this point in the history
We don't enable it by default, don't let it get enabled during
runtime.

Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Jens Axboe authored and Jens Axboe committed Apr 30, 2007
1 parent 20e493a commit 1be92f2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit 1be92f2

Please sign in to comment.