Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210512
b: refs/heads/master
c: b6508c1
h: refs/heads/master
v: v3
  • Loading branch information
Vivek Goyal authored and Jens Axboe committed Aug 23, 2010
1 parent a5afb6c commit 43bc944
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 75230ff2751e88d594a13a70eae2c146f45e323b
refs/heads/master: b6508c1618e7aab085f191efb41b7b019a94ea38
5 changes: 4 additions & 1 deletion trunk/block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1839,6 +1839,9 @@ static bool cfq_should_idle(struct cfq_data *cfqd, struct cfq_queue *cfqq)
BUG_ON(!service_tree);
BUG_ON(!service_tree->count);

if (!cfqd->cfq_slice_idle)
return false;

/* We never do for idle class queues. */
if (prio == IDLE_WORKLOAD)
return false;
Expand Down Expand Up @@ -1879,7 +1882,7 @@ static void cfq_arm_slice_timer(struct cfq_data *cfqd)
/*
* idle is disabled, either manually or by past process history
*/
if (!cfqd->cfq_slice_idle || !cfq_should_idle(cfqd, cfqq))
if (!cfq_should_idle(cfqd, cfqq))
return;

/*
Expand Down

0 comments on commit 43bc944

Please sign in to comment.