mirror of
https://github.com/torvalds/linux.git
synced 2024-12-31 23:31:29 +00:00
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: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
919cd97999
commit
54ed144405
@ -288,8 +288,6 @@ static void ring_buffer_producer(void)
|
||||
/* the completions must be visible before the finish var */
|
||||
smp_wmb();
|
||||
reader_finish = 1;
|
||||
/* finish var visible before waking up the consumer */
|
||||
smp_wmb();
|
||||
wake_up_process(consumer);
|
||||
wait_for_completion(&read_done);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user