From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx> As NONBLOCK can be set temporarily, if that's the state do not skip trying to wake up the reader if its set. It may still need a kick. Signed-off-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx> --- src/tracefs-record.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tracefs-record.c b/src/tracefs-record.c index 428bec0dfe3d..f998883134b8 100644 --- a/src/tracefs-record.c +++ b/src/tracefs-record.c @@ -421,7 +421,7 @@ int tracefs_cpu_stop(struct tracefs_cpu *tcpu) { int ret = 1; - if (tcpu->flags & TC_NONBLOCK) + if (tcpu->flags & TC_PERM_NONBLOCK) return 0; ret = write(tcpu->ctrl_pipe[1], &ret, 1); -- 2.35.1