From: Peter Huewe Date: Fri, 1 Mar 2013 11:46:40 +0000 (+0800) Subject: autofs - Fix sparse warning: context imbalance in autofs4_d_automount() different... X-Git-Tag: v3.9-rc1~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d8072e7c33991a08b29338f3f04dfef7c24afd5;p=pandora-kernel.git autofs - Fix sparse warning: context imbalance in autofs4_d_automount() different lock contexts for basic block Sparse complains: fs/autofs4/root.c:409:9: sparse: context imbalance in 'autofs4_d_automount' - different lock contexts for basic block This was introduced by commit f55fb0c24386 ("autofs4 - dont clear DCACHE_NEED_AUTOMOUNT on rootless mount") The function autofs4_d_automount can be left with the (&sbi->fs_lock) held if sbi->version <= 4 and simple_empty(dentry) == false so the warning seems valid. --> Add an spin_unlock in this case before we jump to done Unfortunately compile tested only. Reported-by: Fengguang Wu Signed-off-by: Peter Huewe Acked-by: Ian Kent Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed