Skip to content
Snippets Groups Projects
Commit 0a823ad2 authored by Raphael S. Carvalho's avatar Raphael S. Carvalho Committed by Pekka Enberg
Browse files

vfs: Unmount /proc to release refcnts pertained to root


/proc must be unmounted to release refcnts which pertains to the root
mountpoint, i.e. zfs.
It was preventing zfs_umount from releasing the mp dentries properly,
thus VOP_INACTIVE from being called on the respective vnodes.

Found the problem while dumping the mountpoint refcnts.

Reviewed-by: default avatarGlauber Costa <glommer@cloudius-systems.com>
Signed-off-by: default avatarRaphael S. Carvalho <raphaelsc@cloudius-systems.com>
Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
parent 021dad44
No related branches found
No related tags found
No related merge requests found
...@@ -1592,6 +1592,12 @@ extern "C" void unmount_rootfs(void) ...@@ -1592,6 +1592,12 @@ extern "C" void unmount_rootfs(void)
sys_umount("/dev"); sys_umount("/dev");
ret = sys_umount("/proc");
if (ret) {
kprintf("Warning: unmount_rootfs: failed to unmount /proc, "
"error = %s\n", strerror(ret));
}
ret = sys_umount2("/", MNT_FORCE); ret = sys_umount2("/", MNT_FORCE);
if (ret) { if (ret) {
kprintf("Warning: unmount_rootfs: failed to unmount /, " kprintf("Warning: unmount_rootfs: failed to unmount /, "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment