Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176495
b: refs/heads/master
c: b9d8f4c
h: refs/heads/master
i:
  176493: 5eabd7b
  176491: 3c9a409
  176487: 7b1176c
  176479: 8757764
v: v3
  • Loading branch information
Gui Jianfeng authored and Jens Axboe committed Dec 9, 2009
1 parent 80af9fa commit c09d1da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a3b8d92d25212c5b6534ae9b347ed2858de78336
refs/heads/master: b9d8f4c73b1af4cfd53f819bf84c2bce31232275
6 changes: 6 additions & 0 deletions trunk/block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1749,6 +1749,12 @@ static struct cfq_queue *cfq_close_cooperator(struct cfq_data *cfqd,
if (CFQQ_SEEKY(cur_cfqq))
return NULL;

/*
* Don't search priority tree if it's the only queue in the group.
*/
if (cur_cfqq->cfqg->nr_cfqq == 1)
return NULL;

/*
* We should notice if some of the queues are cooperating, eg
* working closely on the same area of the disk. In that case,
Expand Down

0 comments on commit c09d1da

Please sign in to comment.