diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2006-09-29 10:59:40 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-29 18:18:09 +0200 |
commit | 6c5c934153513dc72e2d6464f39e8ef1f27c0a3e (patch) | |
tree | be799da4af646a96c2d6ab473e276a7361beb685 /block/blktrace.c | |
parent | [PATCH] task_struct: ifdef Missed'em V IPC (diff) | |
download | linux-6c5c934153513dc72e2d6464f39e8ef1f27c0a3e.tar.xz linux-6c5c934153513dc72e2d6464f39e8ef1f27c0a3e.zip |
[PATCH] ifdef blktrace debugging fields
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'block/blktrace.c')
-rw-r--r-- | block/blktrace.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/block/blktrace.c b/block/blktrace.c index 2b4ef2b89b8d..8ff33441d8a2 100644 --- a/block/blktrace.c +++ b/block/blktrace.c @@ -450,8 +450,10 @@ int blk_trace_ioctl(struct block_device *bdev, unsigned cmd, char __user *arg) **/ void blk_trace_shutdown(request_queue_t *q) { - blk_trace_startstop(q, 0); - blk_trace_remove(q); + if (q->blk_trace) { + blk_trace_startstop(q, 0); + blk_trace_remove(q); + } } /* |