From: Michel Lespinasse Date: Tue, 20 Jul 2010 22:19:45 +0000 (-0700) Subject: x86, rwsem: Stay on fast path when count > 0 in __up_write() X-Git-Tag: v2.6.36-rc1~523^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a751bd858b16dce57f3b6b85ba07946df1bd7be4;p=pandora-kernel.git x86, rwsem: Stay on fast path when count > 0 in __up_write() When count > 0 there is no need to take the call_rwsem_wake path. If we did take that path, it would just return without doing anything due to the active count not being zero. Signed-off-by: Michel Lespinasse LKML-Reference: <201007202219.o6KMJj9x021042@imap1.linux-foundation.org> Acked-by: David Howells Cc: Mike Waychison Cc: Suleiman Souhlal Cc: Ying Han Signed-off-by: Andrew Morton Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed