Skip to content

Commit

Permalink
Added in elevator switch message to blktrace stream
Browse files Browse the repository at this point in the history
Signed-off-by: Alan D. Brunelle <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Alan D. Brunelle authored and Jens Axboe committed May 28, 2008
1 parent 9d5f09a commit 4722dc5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions block/elevator.c
Original file line number Diff line number Diff line change
Expand Up @@ -1110,6 +1110,8 @@ static int elevator_switch(struct request_queue *q, struct elevator_type *new_e)
queue_flag_clear(QUEUE_FLAG_ELVSWITCH, q);
spin_unlock_irq(q->queue_lock);

blk_add_trace_msg(q, "elv switch: %s", e->elevator_type->elevator_name);

return 1;

fail_register:
Expand Down

0 comments on commit 4722dc5

Please sign in to comment.