From fd4faabafff416eb57e9987bdfc05dbc1808b373 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Wed, 7 Dec 2011 20:13:09 -0800 Subject: [PATCH] kernel - Do not use LK_NOWAIT for vfs_busy() after initialization * Minor adjustment, this is more appropriate then what we had but it will not effect the code since nobody references the mp yet at this point (thus the lock always succeeds even w/ LK_NOWAIT). --- sys/kern/vfs_mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index 393f487ef8..ad2dfdbc26 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -302,7 +302,7 @@ vfs_rootmountalloc(char *fstypename, char *devname, struct mount **mpp) mount_init(mp); lockinit(&mp->mnt_lock, "vfslock", VLKTIMEOUT, 0); - vfs_busy(mp, LK_NOWAIT); + vfs_busy(mp, 0); mp->mnt_vfc = vfsp; mp->mnt_op = vfsp->vfc_vfsops; vfsp->vfc_refcount++; -- 2.41.0