]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipc,msg: make msgctl_nolock lockless
authorDavidlohr Bueso <davidlohr.bueso@hp.com>
Wed, 19 Jun 2013 00:08:29 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:27:46 +0000 (17:27 +1000)
commitefb853e63f86d7112fb97f815a17dd351da83553
tree08693f16dfe3c25ba707d5a3bfde7aa271832ebc
parenta8fa7b0a823793c9c597b65e12059e949b1b8414
ipc,msg: make msgctl_nolock lockless

While the INFO cmd doesn't take the ipc lock, the STAT commands do acquire
it unnecessarily.  We can do the permissions and security checks only
holding the rcu lock.

This function now mimics semctl_nolock().

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