]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipc,msg: shorten critical region in msgctl_down
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)
commit63906658da3304ed44e0235f666e719bc39ce3a3
tree331f21822f6cddf4b22585ce3adde5b0ee64f1de
parent3762c80adf919ababb1523fd8c8e6fb316dc33b9
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