From cca9113101b1bf49b468ff3e89778d541b4a3977 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Wed, 7 Dec 2011 20:10:13 -0800 Subject: [PATCH] kernel - Fix panic during diskless mount * Remove improper vfs_unbusy()'s from the nfs_mountroot path. The mount is unbusied by the caller instead. This fixes a lockmgr panic. --- sys/vfs/nfs/nfs_vfsops.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/vfs/nfs/nfs_vfsops.c b/sys/vfs/nfs/nfs_vfsops.c index 31e0070213..5452c647d1 100644 --- a/sys/vfs/nfs/nfs_vfsops.c +++ b/sys/vfs/nfs/nfs_vfsops.c @@ -708,7 +708,6 @@ nfs_mountroot(struct mount *mp) } mp->mnt_flag |= MNT_ROOTFS; - vfs_unbusy(mp); /* * This is not really an nfs issue, but it is much easier to @@ -777,7 +776,6 @@ haderror: #endif kprintf("nfs_mountroot: mount %s on %s: %d", path, which, error); mp->mnt_vfc->vfc_refcount--; - vfs_unbusy(mp); if (didalloc) kfree(mp, M_MOUNT); kfree(nam, M_SONAME); -- 2.41.0