blktrace: perform cleanup after setup error
authorDmitry Monakhov <dmonakhov@openvz.org>
Sat, 27 Feb 2010 17:35:13 +0000 (20:35 +0300)
committerJens Axboe <jens.axboe@oracle.com>
Sun, 28 Feb 2010 18:47:19 +0000 (19:47 +0100)
commit9a8c28c8311e30ba97499447d5a11662f5aea094
treeb0260ab00c6e24fb02ca1cb3c147350e933c79ba
parent9f7cdbc33f36d28e57eaba0093f68f0d14c38c5b
blktrace: perform cleanup after setup error

Currently even if BLKTRACESETUP ioctl has failed user must call
BLKTRACETEARDOWN to be shure what all staff was cleaned, which
is contr-intuitive.
Let's setup ioctl make necessery cleanup by it self.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
kernel/trace/blktrace.c