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)
commit8ad7b378d0d016309014cae0f640434bca7b5e11
treed09f50e75566b76d8595c37f9625cc4d7a45a98f
parente2d6f8a5f596b1f09839990b11a3c2e0c9f0dbc2
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