blktrace: don't stop tracer if not setup trace successfully
authorweiping zhang <zhangweiping@didichuxing.com>
Mon, 15 Jan 2018 15:53:42 +0000 (23:53 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 24 Jan 2018 15:40:52 +0000 (08:40 -0700)
commite63098f39398bde67be9b64a49deece1c60614df
treef120ac537bcbedc3d5b942f6d48f627145cb12af
parent519fd9a5d08d85f3d9cb4192d624fe8351e40232
blktrace: don't stop tracer if not setup trace successfully

if we run blktrace on same device twice, the second time will failed
to ioctl(BLKTRACESETUP), then it will call __stop_tracer, which lead
the first blktrace failed to access debugfs entries. So this patch add
a check to handle this case, to avoid stop tracer uncondionally.

Signed-off-by: weiping zhang <zhangweiping@didichuxing.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
blktrace.c