vfs: In mntput run deactivate_super on a shallow stack.
mntput as part of path_put is called from all over the vfs sometimes
as in the case of symlink chasing from some rather deep call chains.
During lazy filesystem unmount with the right set of races those
innocuous little mntput calls (that take very little stack space) can
call deactivate_super and wind up taking 3k of stack space or more
(David Chinner reports 5k for xfs).
Avoid deactivate_super being called from a deep stack by moving
the cleanup of the mount into a work queue.
To avoid semantic changes mntput waits for deactivate_super to complete
before returning.
With this change all filesystem unmounting happens with about 7400
bytes free on the stack at the point where deactivate_super is called.
Giving filesystems plenty of room to do I/O and not overflow the
kernel stack during unmounting.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>