]> git.baikalelectronics.ru Git - kernel.git/commit
ipc,msg: shorten critical region in msgctl_down
authorDavidlohr Bueso <davidlohr.bueso@hp.com>
Mon, 8 Jul 2013 23:01:13 +0000 (16:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 Jul 2013 17:33:27 +0000 (10:33 -0700)
commit93fc7f378ca38917e43e2515921c4a17ab84719f
treed9ae089252e84327367056a29c0cf6b16f844c2e
parentb22720b0a6ed4d1b366201b84307af5e9f47faa0
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
ipc/msg.c