blktrace: don't increase blk_probes_ref if failed to setup blk trace
authorLi Zefan <lizf@cn.fujitsu.com>
Fri, 20 Mar 2009 01:48:47 +0000 (09:48 +0800)
committerIngo Molnar <mingo@elte.hu>
Sat, 21 Mar 2009 15:16:37 +0000 (16:16 +0100)
commitcbe28296eb1ac441b35cf45804d0ae808add7dd1
treec387d2697ea153cadb629e3d664960bf12b8bc84
parent3c289ba7c320560ee74979a8895141c829046a2d
blktrace: don't increase blk_probes_ref if failed to setup blk trace

do_blk_trace_setup() may return EBUSY, but the current code
doesn't decrease blk_probes_ref in this case.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <49C2F5FF.80002@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/blktrace.c