Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359493
b: refs/heads/master
c: 1f23f12
h: refs/heads/master
i:
  359491: 074115a
v: v3
  • Loading branch information
Vivek Goyal authored and Tejun Heo committed Jan 9, 2013
1 parent 8e9ae14 commit 79bb843
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: 6d816ec7c83871da7c2472af7479d2438e641052
refs/heads/master: 1f23f12151ab508728dd5fca12180e2fce6c6949
8 changes: 2 additions & 6 deletions trunk/block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1658,22 +1658,18 @@ static void cfq_service_tree_add(struct cfq_data *cfqd, struct cfq_queue *cfqq,
cfqq->service_tree = st;
p = &st->rb.rb_node;
while (*p) {
struct rb_node **n;

parent = *p;
__cfqq = rb_entry(parent, struct cfq_queue, rb_node);

/*
* sort by key, that represents service time.
*/
if (time_before(rb_key, __cfqq->rb_key))
n = &(*p)->rb_left;
p = &parent->rb_left;
else {
n = &(*p)->rb_right;
p = &parent->rb_right;
left = 0;
}

p = n;
}

if (left)
Expand Down

0 comments on commit 79bb843

Please sign in to comment.