From: Pierre Peiffer Date: Tue, 29 Apr 2008 08:00:49 +0000 (-0700) Subject: IPC/semaphores: move the rwmutex handling inside semctl_down X-Git-Tag: v2.6.26-rc1~538 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=522bb2a2b420a0c1d0fcd037aa4e1bb9e2bca447;p=pandora-kernel.git 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 Acked-by: Serge Hallyn Cc: Nadia Derbey Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed