From: Jeff Layton Date: Fri, 21 Jun 2013 12:58:16 +0000 (-0400) Subject: locks: avoid taking global lock if possible when waking up blocked waiters X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~42^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e8c765d384e549f9b542ea0bd42e2aa227e1404;p=pandora-kernel.git locks: avoid taking global lock if possible when waking up blocked waiters Since we always hold the i_lock when inserting a new waiter onto the fl_block list, we can avoid taking the global lock at all if we find that it's empty when we go to wake up blocked waiters. Signed-off-by: Jeff Layton Signed-off-by: Al Viro --- Reading git-diff-tree failed