diff options
author | 2009-12-10 22:54:27 -0500 | |
---|---|---|
committer | 2009-12-10 22:54:27 -0500 | |
commit | 184210154b9aa570099183f6c062ac4eb11190b7 (patch) | |
tree | 8951abcbd66eb5e198e340013b87138c2ff8d7fa /kernel/resource.c | |
parent | tracing: Fix wrong usage of strstrip in trace_ksyms (diff) | |
download | wireguard-linux-184210154b9aa570099183f6c062ac4eb11190b7.tar.xz wireguard-linux-184210154b9aa570099183f6c062ac4eb11190b7.zip |
ring-buffer: Use sync sched protection on ring buffer resizing
There was a comment in the ring buffer code that says the calling
layers should prevent tracing or reading of the ring buffer while
resizing. I have discovered that the tracers do not honor this
arrangement.
This patch moves the disabling and synchronizing the ring buffer to
a higher layer during resizing. This guarantees that no writes
are occurring while the resize takes place.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/resource.c')
0 files changed, 0 insertions, 0 deletions