locking/rwsem: Document barrier need when waking tasks
authorDavidlohr Bueso <dave@stgolabs.net>
Fri, 30 Jan 2015 09:14:24 +0000 (01:14 -0800)
committerIngo Molnar <mingo@kernel.org>
Wed, 18 Feb 2015 15:57:10 +0000 (16:57 +0100)
commit49e4b2bcf7b812e985e65b6c8a0255b1520a6e7e
tree72b8d5e9e0ce330251a310e05b5633fc8f505371
parenta21294644623ee41034db60e93aaebed4db0e57b
locking/rwsem: Document barrier need when waking tasks

The need for the smp_mb() in __rwsem_do_wake() should be
properly documented. Applies to both xadd and spinlock
variants.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Jason Low <jason.low2@hp.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Michel Lespinasse <walken@google.com>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Tim Chen <tim.c.chen@linux.intel.com>
Link: http://lkml.kernel.org/r/1422609267-15102-3-git-send-email-dave@stgolabs.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/locking/rwsem-spinlock.c
kernel/locking/rwsem-xadd.c