Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/kern/vfs_syscalls.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/kern/vfs_syscalls.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.507 retrieving revision 1.508 diff -u -p -r1.507 -r1.508 --- src/sys/kern/vfs_syscalls.c 2017/03/01 10:44:47 1.507 +++ src/sys/kern/vfs_syscalls.c 2017/03/01 10:45:24 1.508 @@ -1,4 +1,4 @@ -/* $NetBSD: vfs_syscalls.c,v 1.507 2017/03/01 10:44:47 hannken Exp $ */ +/* $NetBSD: vfs_syscalls.c,v 1.508 2017/03/01 10:45:24 hannken Exp $ */ /*- * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc. @@ -70,7 +70,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.507 2017/03/01 10:44:47 hannken Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.508 2017/03/01 10:45:24 hannken Exp $"); #ifdef _KERNEL_OPT #include "opt_fileassoc.h" @@ -287,6 +287,10 @@ mount_update(struct lwp *l, struct vnode goto out; } + error = vfs_suspend(mp, 0); + if (error) + goto out; + mutex_enter(&mp->mnt_updating); mp->mnt_flag &= ~MNT_OP_FLAGS; @@ -339,6 +343,7 @@ mount_update(struct lwp *l, struct vnode vfs_syncer_remove_from_worklist(mp); } mutex_exit(&mp->mnt_updating); + vfs_resume(mp); vfs_unbusy(mp, false, NULL); if ((error == 0) && !(saved_flags & MNT_EXTATTR) &&