diff options
author | Steven Rostedt <srostedt@redhat.com> | 2013-02-28 19:44:11 +0100 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-03-15 05:34:49 +0100 |
commit | b627344fef0c38fa4e3050348e168e46db87c905 (patch) | |
tree | d828a640959fcb39667cbc56cd7cf8e75f34636f /mm/nommu.c | |
parent | tracing: Fix polling on trace_pipe_raw (diff) | |
download | linux-b627344fef0c38fa4e3050348e168e46db87c905.tar.xz linux-b627344fef0c38fa4e3050348e168e46db87c905.zip |
tracing: Fix read blocking on trace_pipe_raw
If the ring buffer is empty, a read to trace_pipe_raw wont block.
The tracing code has the infrastructure to wake up waiting readers,
but the trace_pipe_raw doesn't take advantage of that.
When a read is done to trace_pipe_raw without the O_NONBLOCK flag
set, have the read block until there's data in the requested buffer.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'mm/nommu.c')
0 files changed, 0 insertions, 0 deletions