From: Michel Lespinasse Date: Tue, 7 May 2013 13:45:56 +0000 (-0700) Subject: rwsem: avoid taking wait_lock in rwsem_down_write_failed X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~14^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7d2c573ae7fad1b2c877d1a1342fa5bb0d6478c;p=pandora-kernel.git rwsem: avoid taking wait_lock in rwsem_down_write_failed In rwsem_down_write_failed(), if there are active locks after we wake up (i.e. the lock got stolen from us), skip taking the wait_lock and go back to sleep immediately. 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