tracing: Wake up ring buffer waiters on closing of the file
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 27 Sep 2022 23:15:27 +0000 (19:15 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 29 Sep 2022 00:28:13 +0000 (20:28 -0400)
commitf3ddb74ad0790030c9592229fb14d8c451f4e9a8
tree1bca8a772c02e57ee8ca5db7f393ce5a6fabaea5
parent7e9fbbb1b776d8d7969551565bc246f74ec53b27
tracing: Wake up ring buffer waiters on closing of the file

When the file that represents the ring buffer is closed, there may be
waiters waiting on more input from the ring buffer. Call
ring_buffer_wake_waiters() to wake up any waiters when the file is
closed.

Link: https://lkml.kernel.org/r/20220927231825.182416969@goodmis.org
Cc: stable@vger.kernel.org
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Fixes: e30f53aad2202 ("tracing: Do not busy wait in buffer splice")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
include/linux/trace_events.h
kernel/trace/trace.c