]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipc,msg: shorten critical region in msgctl_down
authorDavidlohr Bueso <davidlohr.bueso@hp.com>
Wed, 19 Jun 2013 00:08:28 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:27:45 +0000 (17:27 +1000)
commit07d7e9f095e5f45a3e21291e0b7bb34c50a94b05
treebcb247e3d8209368822af899dbc670174ae32823
parent7f170c45e63421ef1ee5759b18efbfba9ad6bbb1
ipc,msg: shorten critical region in msgctl_down

Instead of holding the ipc lock for the entire function, use the
ipcctl_pre_down_nolock and only acquire the lock for specific commands:
RMID and SET.

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