sys/vfs/autofs: prevent assert on unmount.
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 14 Jan 2018 14:14:46 +0000 (16:14 +0200)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 14 Jan 2018 14:48:44 +0000 (16:48 +0200)
commit1bfb99b1b153fdeeebc2019ea9c3dd8a73450f00
tree08a7b151eccbff3383111dcb07d2f2224fa4660c
parent680f56fe73ab00b823764c5dd10783728f29bc25
sys/vfs/autofs: prevent assert on unmount.

Bring in below commit from NetBSD/autofs. This hasn't existed in
FreeBSD and DragonFly. This at least avoids potential panic via
assertion failure on unmount like PR 3062. Note that the assertion
in autofs_node_delete() is good. There might be mkdir related bug.

The GitHub link below may not be a valid URL in the future.

http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/fs/autofs/autofs_vfsops.c.diff?r1=1.2&r2=1.3
(https://github.com/NetBSD/src/commit/59fdd9b6d94c045e89f22f06c9a6f6d6c0fd60f2)
sys/vfs/autofs/autofs_vfsops.c