summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_sched_wakeup.c
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2014-04-29 22:07:28 +0200
committerSteven Rostedt <rostedt@goodmis.org>2014-04-29 22:07:28 +0200
commitf4874261049e3abdd481359d82cafa5068369ebd (patch)
treeee81269a6086634c7ae04c18eba24fb717528590 /kernel/trace/trace_sched_wakeup.c
parenttracing: Fix documentation of ftrace_set_global_{filter,notrace}() (diff)
downloadlinux-f4874261049e3abdd481359d82cafa5068369ebd.tar.xz
linux-f4874261049e3abdd481359d82cafa5068369ebd.zip
tracing: Break out of tracing_wait_pipe() before wait_pipe() is called
When reading from trace_pipe, if tracing is off but nothing was read it should block. If something is read and tracing is off, then EOF is returned. If tracing is on and there's nothing to read, it will block. But because the check of whether tracing is off and something was read is done after the block on the pipe, it is hit or miss if the EOF is returned or not leading to inconsistent behavior. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_sched_wakeup.c')
0 files changed, 0 insertions, 0 deletions