block: trace event block fix unassigned field
commitb7908c1035af7652cd613991b54dbff9c8b6bd3a
authorJeff Moyer <jmoyer@redhat.com>
Thu, 6 Jan 2011 19:41:42 +0000 (6 20:41 +0100)
committerJens Axboe <jaxboe@fusionio.com>
Fri, 7 Jan 2011 07:43:55 +0000 (7 08:43 +0100)
tree91dc24bbb1299ba7f84e22bbaffd28950dd04713
parent6c23a9681c0fe7fb7dd331b39dda11926f43746e
block: trace event block fix unassigned field

The "error" field in block_bio_complete is not assigned, leaving the memory area
uninitialized (keeping garbage data). Pass an additional tracepoint argument to
this event to initialize this field.

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
CC: Steven Rostedt <rostedt@goodmis.org>
CC: Frederic Weisbecker <fweisbec@gmail.com>
CC: Ingo Molnar <mingo@elte.hu>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: Li Zefan <lizf@cn.fujitsu.com>
CC: Alan.Brunelle@hp.com
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
drivers/md/dm.c
include/trace/events/block.h