We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a647a52 commit 5afedf6Copy full SHA for 5afedf6
kernel/trace/blktrace.c
@@ -1605,6 +1605,14 @@ static int blk_trace_remove_queue(struct request_queue *q)
1605
if (bt == NULL)
1606
return -EINVAL;
1607
1608
+ if (bt->trace_state == Blktrace_running) {
1609
+ bt->trace_state = Blktrace_stopped;
1610
+ spin_lock_irq(&running_trace_lock);
1611
+ list_del_init(&bt->running_list);
1612
+ spin_unlock_irq(&running_trace_lock);
1613
+ relay_flush(bt->rchan);
1614
+ }
1615
+
1616
put_probe_ref();
1617
synchronize_rcu();
1618
blk_trace_free(bt);
0 commit comments