Skip to content

Commit

Permalink
Fix up CFQ scheduler for recent rbtree node shrinkage
Browse files Browse the repository at this point in the history
The color is now in the low bits of the parent pointer, and initializing
it to 0 happens as part of the whole memset above, so just remove the
unnecessary RB_CLEAR_COLOR.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Linus Torvalds committed Jun 21, 2006
1 parent 58dfd9c commit 6b41fd1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,6 @@ cfq_alloc_io_context(struct cfq_data *cfqd, gfp_t gfp_mask)

if (cic) {
memset(cic, 0, sizeof(*cic));
RB_CLEAR_COLOR(&cic->rb_node);
cic->last_end_request = jiffies;
INIT_LIST_HEAD(&cic->queue_list);
cic->dtor = cfq_free_io_context;
Expand Down

0 comments on commit 6b41fd1

Please sign in to comment.