]> git.baikalelectronics.ru Git - kernel.git/commit
futex: Rename barrier references in ordering guarantees
authorDavidlohr Bueso <dave@stgolabs.net>
Tue, 9 Feb 2016 19:15:13 +0000 (11:15 -0800)
committerIngo Molnar <mingo@kernel.org>
Wed, 17 Feb 2016 09:42:17 +0000 (10:42 +0100)
commitb2a2117bc32fc6ff8271acd0378467b14249aa33
treed09f50e75566b76d8595c37f9625cc4d7a45a98f
parent8a4e002117655b29319f8e6422ec07de7a1ad53e
futex: Rename barrier references in ordering guarantees

Ingo suggested we rename how we reference barriers A and B
regarding futex ordering guarantees. This patch replaces,
for both barriers, MB (A) with smp_mb(); (A), such that:

 - We explicitly state that the barriers are SMP, and

 - We standardize how we reference these across futex.c
   helping readers follow what barrier does what and where.

Suggested-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Chris Mason <clm@fb.com>
Cc: Darren Hart <dvhart@linux.intel.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: dave@stgolabs.net
Link: http://lkml.kernel.org/r/1455045314-8305-2-git-send-email-dave@stgolabs.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/futex.c