From: Linus Torvalds Date: Sat, 4 May 2013 17:13:40 +0000 (-0700) Subject: ipc: move the rcu_read_lock() from sem_lock_and_putref() into callers X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~38^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4091fd942e96af5a0b1dfa6aac5f44153ebf7cdb;p=pandora-kernel.git ipc: move the rcu_read_lock() from sem_lock_and_putref() into callers This is another ipc semaphore locking cleanup, trying to make the locking more straightforward. We move the rcu read locking into the callers of sem_lock_and_putref(), which in general means that we now mostly do the rcu_read_lock() and rcu_read_unlock() in the same function. Mostly. We still have the ipc_addid/newary/freeary mess, and things like ipcctl_pre_down_nolock(). Acked-by: Davidlohr Bueso Cc: Rik van Riel Cc: Al Viro Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed