Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27076
b: refs/heads/master
c: b52a834
h: refs/heads/master
v: v3
  • Loading branch information
Jens Axboe committed Jun 1, 2006
1 parent 15c3d88 commit 12f02ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: ae818a38d4755ba4c16a22a8eacec859511a5393
refs/heads/master: b52a834892f17b6c54c34ab65f1fad1a9229e764
7 changes: 5 additions & 2 deletions trunk/block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,10 +501,13 @@ static void cfq_resort_rr_list(struct cfq_queue *cfqq, int preempted)

/*
* if queue was preempted, just add to front to be fair. busy_rr
* isn't sorted.
* isn't sorted, but insert at the back for fairness.
*/
if (preempted || list == &cfqd->busy_rr) {
list_add(&cfqq->cfq_list, list);
if (preempted)
list = list->prev;

list_add_tail(&cfqq->cfq_list, list);
return;
}

Expand Down

0 comments on commit 12f02ec

Please sign in to comment.