]> git.baikalelectronics.ru Git - kernel.git/commit
futex: Fix barrier comment
authorDavidlohr Bueso <dave@stgolabs.net>
Wed, 6 Feb 2019 18:56:02 +0000 (10:56 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 8 Feb 2019 12:00:35 +0000 (13:00 +0100)
commitd0df48d48f3c25151cf38a765e1ac0d2170d8e5d
treef759c5a15e81839f297993fbf55c3735b61b51da
parentb8bc4f04f884491eccfd1f2a6c960d97a4112972
futex: Fix barrier comment

The current comment for the barrier that guarantees that waiter increment
is always before taking the hb spinlock (barrier (A)) needs to be fixed as
it is misplaced.

This is obviously referring to hb_waiters_inc, which is a full barrier.

Reported-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20190206185602.949-1-dave@stgolabs.net
kernel/futex.c