alistair23-linux/fs/autofs4
Peter Huewe 9d8072e7c3 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 f55fb0c243 ("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 <fengguang.wu@intel.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Acked-by: Ian Kent <raven@themaw.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-03-01 12:04:39 -08:00
..
autofs_i.h new helper: file_inode(file) 2013-02-22 23:31:31 -05:00
dev-ioctl.c new helper: file_inode(file) 2013-02-22 23:31:31 -05:00
expire.c autofs4 - dont clear DCACHE_NEED_AUTOMOUNT on rootless mount 2012-12-13 19:13:25 -08:00
init.c autofs: set things up *before* registering fs type 2012-03-20 21:29:46 -04:00
inode.c userns: Support autofs4 interacing with multiple user namespaces 2012-11-14 22:05:32 -08:00
Kconfig
Makefile
root.c autofs - Fix sparse warning: context imbalance in autofs4_d_automount() different lock contexts for basic block 2013-03-01 12:04:39 -08:00
symlink.c
waitq.c userns: Support autofs4 interacing with multiple user namespaces 2012-11-14 22:05:32 -08:00