summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_subr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r--sys/kern/vfs_subr.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index f600bcff117..149819a0664 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_subr.c,v 1.270 2018/05/07 15:24:05 bluhm Exp $ */
+/* $OpenBSD: vfs_subr.c,v 1.271 2018/05/08 08:58:49 mpi Exp $ */
/* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */
/*
@@ -1627,6 +1627,13 @@ vfs_stall(struct proc *p, int stall)
return (allerror);
}
+void
+vfs_stall_barrier(void)
+{
+ rw_enter_read(&vfs_stall_lock);
+ rw_exit_read(&vfs_stall_lock);
+}
+
/*
* Unmount all file systems.
* We traverse the list in reverse order under the assumption that doing so