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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 10:34:31 +0000 (12:34 +0200)
commit32eb54a986f40a9a586a7c58c01e4916de78d57c
treedd8cfd365fe96c4fcf15642c53335dc479e3d2cc
parent2475de2bc0de17fb1b24c5e90194f84b5ca70d3e
tracing: Wake up waiters when tracing is disabled

commit 2b0fd9a59b7990c161fa1cb7b79edb22847c87c2 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/trace/trace.c