From: Alan D. Brunelle Date: Tue, 27 May 2008 12:55:00 +0000 (+0200) Subject: Added in elevator switch message to blktrace stream X-Git-Tag: v2.6.26-rc5~43^2~2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4722dc52a891ab6cb2d637ddb87233e0ce277827;p=linux-2.6 Added in elevator switch message to blktrace stream Signed-off-by: Alan D. Brunelle Signed-off-by: Jens Axboe --- diff --git a/block/elevator.c b/block/elevator.c index 980f8ae147..902dd1344d 100644 --- a/block/elevator.c +++ b/block/elevator.c @@ -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: