From: Michel Lespinasse Date: Tue, 7 May 2013 13:45:57 +0000 (-0700) Subject: rwsem: skip initial trylock in rwsem_down_write_failed X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~14^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b0fc9c09f1b;p=pandora-kernel.git rwsem: skip initial trylock in rwsem_down_write_failed We can skip the initial trylock in rwsem_down_write_failed() if there are known active lockers already, thus saving one likely-to-fail cmpxchg. Signed-off-by: Michel Lespinasse Reviewed-by: Peter Hurley Acked-by: Davidlohr Bueso Acked-by: Rik van Riel Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed