]> git.baikalelectronics.ru Git - kernel.git/commit
ipc: move sem_obtain_lock() rcu locking into the only caller
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 4 May 2013 17:47:57 +0000 (10:47 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 5 May 2013 00:20:14 +0000 (17:20 -0700)
commit6ffba054a0f28bfdd61c23dece047088109011cb
tree0722d86daa8778a69207965cc6bc005d0def9f08
parent4e88f9b800925c48cb2a8be0742f66fe51ed3024
ipc: move sem_obtain_lock() rcu locking into the only caller

sem_obtain_lock() was another of those functions that returned with the
RCU lock held for reading in the success case.  Move the RCU locking to
the caller (semtimedop()), making it more obvious.  We already did RCU
locking elsewhere in that function.

Side note: why does semtimedop() re-do the semphore lookup after the
sleep, rather than just getting a reference to the semaphore it already
looked up originally?

Acked-by: Davidlohr Bueso <davidlohr.bueso@hp.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
ipc/sem.c