]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
autofs - dont hold spin lock over direct mount expire
authorIan Kent <ikent@redhat.com>
Mon, 28 Nov 2016 02:12:14 +0000 (10:12 +0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 4 Dec 2016 01:51:50 +0000 (20:51 -0500)
commit1c4344a50d702307185cb98fb67bff938cd66aa0
tree72ed2eb1737d3562bd7f8c5e137fe908e4d82f6b
parent455e8f1030de82b68ee4e82f71516f3692f5e626
autofs - dont hold spin lock over direct mount expire

Commit 7cbdb4a286 altered the autofs indirect mount expire to
not hold a spin lock during the expire check.

The direct mount expire needs the same treatment because to
make autofs expires namespace aware may_umount_tree() needs to
to use a similar method to may_umount() when checking if a mount
tree is in use.

This means may_umount_tree() will end up taking the namespace_sem
for the check so the autofs direct mount expire won't be allowed
to hold a spin lock over the check.

Signed-off-by: Ian Kent <raven@themaw.net>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Omar Sandoval <osandov@osandov.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/autofs4/expire.c