From: Davidlohr Bueso Date: Mon, 8 Jul 2013 23:01:12 +0000 (-0700) Subject: ipc: move locking out of ipcctl_pre_down_nolock X-Git-Tag: v3.11-rc1~67^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b4cc5d8411bd4e9d61d8714f53859740cf830c2;p=pandora-kernel.git ipc: move locking out of ipcctl_pre_down_nolock This function currently acquires both the rw_mutex and the rcu lock on successful lookups, leaving the callers to explicitly unlock them, creating another two level locking situation. Make the callers (including those that still use ipcctl_pre_down()) explicitly lock and unlock the rwsem and rcu lock. Signed-off-by: Davidlohr Bueso Cc: Andi Kleen Cc: Rik van Riel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed