Commit 54ed1444 authored by Steven Rostedt (Red Hat)'s avatar Steven Rostedt (Red Hat) Committed by Steven Rostedt

ring_buffer: Remove unneeded smp_wmb() before wakeup of reader benchmark

wake_up_process() has a memory barrier before doing anything, thus adding a
memory barrier before calling it is redundant.
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 919cd979
...@@ -288,8 +288,6 @@ static void ring_buffer_producer(void) ...@@ -288,8 +288,6 @@ static void ring_buffer_producer(void)
/* the completions must be visible before the finish var */ /* the completions must be visible before the finish var */
smp_wmb(); smp_wmb();
reader_finish = 1; reader_finish = 1;
/* finish var visible before waking up the consumer */
smp_wmb();
wake_up_process(consumer); wake_up_process(consumer);
wait_for_completion(&read_done); wait_for_completion(&read_done);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment