summaryrefslogtreecommitdiffstats
path: root/ipc/msg.c
diff options
context:
space:
mode:
authorPierre Peiffer2008-04-29 10:00:49 +0200
committerLinus Torvalds2008-04-29 17:06:13 +0200
commit522bb2a2b420a0c1d0fcd037aa4e1bb9e2bca447 (patch)
tree6023efd860b807e7d50a20eebeaebe3e21d0285b /ipc/msg.c
parentIPC/message queues: introduce msgctl_down (diff)
downloadkernel-qcow2-linux-522bb2a2b420a0c1d0fcd037aa4e1bb9e2bca447.tar.gz
kernel-qcow2-linux-522bb2a2b420a0c1d0fcd037aa4e1bb9e2bca447.tar.xz
kernel-qcow2-linux-522bb2a2b420a0c1d0fcd037aa4e1bb9e2bca447.zip
IPC/semaphores: move the rwmutex handling inside semctl_down
semctl_down is called with the rwmutex (the one which protects the list of ipcs) taken in write mode. This patch moves this rwmutex taken in write-mode inside semctl_down. This has the advantages of reducing a little bit the window during which this rwmutex is taken, clarifying sys_semctl, and finally of having a coherent behaviour with [shm|msg]ctl_down Signed-off-by: Pierre Peiffer <pierre.peiffer@bull.net> Acked-by: Serge Hallyn <serue@us.ibm.com> Cc: Nadia Derbey <Nadia.Derbey@bull.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc/msg.c')
0 files changed, 0 insertions, 0 deletions