aboutsummaryrefslogtreecommitdiffstats
path: root/block/blktrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/blktrace.c')
-rw-r--r--block/blktrace.c6
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)
450 **/ 450 **/
451void blk_trace_shutdown(request_queue_t *q) 451void blk_trace_shutdown(request_queue_t *q)
452{ 452{
453 blk_trace_startstop(q, 0); 453 if (q->blk_trace) {
454 blk_trace_remove(q); 454 blk_trace_startstop(q, 0);
455 blk_trace_remove(q);
456 }
455} 457}
456 458
457/* 459/*