tracing: Wake up waiters when tracing is disabled
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 28 Sep 2022 22:22:20 +0000 (18:22 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 29 Sep 2022 14:17:35 +0000 (10:17 -0400)
commit2b0fd9a59b7990c161fa1cb7b79edb22847c87c2
tree1e612ee595ef0a6366009cdeaa78932147adfe62
parent01b2a52171735c6eea80ee2f355f32bea6c41418
tracing: Wake up waiters when tracing is disabled

When tracing is disabled, there's no reason that waiters should stay
waiting, wake them up, otherwise tasks get stuck when they should be
flushing the buffers.

Cc: stable@vger.kernel.org
Fixes: e30f53aad2202 ("tracing: Do not busy wait in buffer splice")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace.c