]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipc,msg: shorten critical region in msgrcv
authorDavidlohr Bueso <davidlohr.bueso@hp.com>
Fri, 7 Jun 2013 00:09:47 +0000 (10:09 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 17 Jun 2013 08:20:46 +0000 (18:20 +1000)
commit521dd86ffd44a59a9b5de4840dda77b9b55eb8e7
treecc10299b4173b9d9728a038a844be30b87669ed8
parent4cb00f34977fdb818c7c5feabcee9de0007f9311
ipc,msg: shorten critical region in msgrcv

do_msgrcv() is the last msg queue function that abuses the ipc lock 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>
ipc/msg.c