From: Peter Zijlstra Date: Thu, 31 Oct 2013 16:41:23 +0000 (+0100) Subject: perf: Update a stale comment X-Git-Tag: MMI-PSA29.97-13-9~13343^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=394570b7939e1262f39373866166d8ee0a506e88;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git perf: Update a stale comment Signed-off-by: Peter Zijlstra Cc: Benjamin Herrenschmidt Cc: Frederic Weisbecker Cc: Mathieu Desnoyers Cc: Michael Ellerman Cc: Michael Neuling Cc: "Paul E. McKenney" Cc: james.hogan@imgtec.com Cc: Vince Weaver Cc: Victor Kaplansky Cc: Oleg Nesterov Cc: Anton Blanchard Link: http://lkml.kernel.org/n/tip-9s5mze78gmlz19agt39i8rii@git.kernel.org Signed-off-by: Ingo Molnar --- diff --git a/kernel/events/ring_buffer.c b/kernel/events/ring_buffer.c index c52a32fa5592..e8b168af135b 100644 --- a/kernel/events/ring_buffer.c +++ b/kernel/events/ring_buffer.c @@ -85,8 +85,8 @@ again: rb->user_page->data_head = head; /* - * Now check if we missed an update, rely on the (compiler) - * barrier in atomic_dec_and_test() to re-read rb->head. + * Now check if we missed an update -- rely on previous implied + * compiler barriers to force a re-read. */ if (unlikely(head != local_read(&rb->head))) { local_inc(&rb->nest);