diff --git a/external/cddl/osnet/sys/kern/vfs.c b/external/cddl/osnet/sys/kern/vfs.c index 6daf606fbf76..2f14c577e10a 100644 --- a/external/cddl/osnet/sys/kern/vfs.c +++ b/external/cddl/osnet/sys/kern/vfs.c @@ -1,4 +1,4 @@ -/* $NetBSD: vfs.c,v 1.4 2011/04/02 04:57:35 rmind Exp $ */ +/* $NetBSD: vfs.c,v 1.5 2013/11/25 22:48:05 christos Exp $ */ /*- * Copyright (c) 2006-2007 Pawel Jakub Dawidek @@ -324,9 +324,7 @@ domount(kthread_t *td, vnode_t *vp, const char *fstype, char *fspath, vp->v_iflag &= ~VI_MOUNT; simple_unlock(&vp->v_interlock); vp->v_mountedhere = mp; - mutex_enter(&mountlist_lock); - CIRCLEQ_INSERT_TAIL(&mountlist, mp, mnt_list); - mutex_exit(&mountlist_lock); + mountlist_append(mp); vfs_event_signal(NULL, VQ_MOUNT, 0); if (VFS_ROOT(mp, LK_EXCLUSIVE, &mvp, td)) panic("mount: lost mount");