]> git.baikalelectronics.ru Git - kernel.git/commit
ipc,msg: shorten critical region in msgsnd
authorDavidlohr Bueso <davidlohr.bueso@hp.com>
Mon, 8 Jul 2013 23:01:17 +0000 (16:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 Jul 2013 17:33:27 +0000 (10:33 -0700)
commit1828f4d14361051531c7179e5b215466e94260ff
tree21bd41e3f445ca3ba3b96b24f53e9e4adc2ea1fb
parent11b4136792eedf440acec05c111d905d0fe3e28d
ipc,msg: shorten critical region in msgsnd

do_msgsnd() is another function that does too many things with the ipc
object lock acquired.  Take it only when needed when actually updating
msq.

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