From: NeilBrown Date: Fri, 8 Aug 2014 21:19:54 +0000 (-0700) Subject: autofs4: don't take spinlock when not needed in autofs4_lookup_expiring X-Git-Tag: omap-for-v3.17/fixes-against-rc2~116^2~175 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=668128e90b9596668141539326178dacc42af188;p=pandora-kernel.git autofs4: don't take spinlock when not needed in autofs4_lookup_expiring If the expiring_list is empty, we can avoid a costly spinlock in the rcu-walk path through autofs4_d_manage (once the rest of the path becomes rcu-walk friendly). Signed-off-by: NeilBrown Reviewed-by: Ian Kent Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed