]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipc: move locking out of ipcctl_pre_down_nolock
authorDavidlohr Bueso <davidlohr.bueso@hp.com>
Thu, 27 Jun 2013 23:54:02 +0000 (09:54 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:39:01 +0000 (16:39 +1000)
commit3762c80adf919ababb1523fd8c8e6fb316dc33b9
treecf4d19589fdb1231f529a693475403cdde5d7b84
parent3da30cba2836c5d2f827368e6935d2ae53d2e693
ipc: move locking out of ipcctl_pre_down_nolock

This function currently acquires both the rw_mutex and the rcu lock on
successful lookups, leaving the callers to explicitly unlock them,
creating another two level locking situation.

Make the callers (including those that still use ipcctl_pre_down())
explicitly lock and unlock the rwsem and rcu lock.

Signed-off-by: Davidlohr Bueso <davidlohr.bueso@hp.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
ipc/msg.c
ipc/sem.c
ipc/shm.c
ipc/util.c