summaryrefslogtreecommitdiff
path: root/sys/kern/kern_descrip.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2021-10-21 09:59:15 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2021-10-21 09:59:15 +0000
commit7661f5b135e45d5a8e451a7d6efc839f71a7a3fe (patch)
tree9d04b6e0b65b5526b6c99f3fcb41644b674143c6 /sys/kern/kern_descrip.c
parent60bd17b6047b9da716d50c9906dd642639b4ebe6 (diff)
Move vfs_stall_barrier() from the fd layer into vn_lock() and the vfs layer.
vfs stalling is used by suspend/resume and by vmt(4) to stall any filesystem operation from altering the state on disk. All these operations will call vn_lock and be stalled. Adjust vfs_stall_barrier() to allow the lock owner to still progress so that suspend can sync the filesystems after stalling vfs operation. OK mpi@
Diffstat (limited to 'sys/kern/kern_descrip.c')
-rw-r--r--sys/kern/kern_descrip.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index 744b2247801..ea3e3399ce0 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_descrip.c,v 1.202 2020/06/11 13:23:18 visa Exp $ */
+/* $OpenBSD: kern_descrip.c,v 1.203 2021/10/21 09:59:13 claudio Exp $ */
/* $NetBSD: kern_descrip.c,v 1.42 1996/03/30 22:24:38 christos Exp $ */
/*
@@ -232,8 +232,6 @@ fd_getfile(struct filedesc *fdp, int fd)
{
struct file *fp;
- vfs_stall_barrier();
-
if ((u_int)fd >= fdp->fd_nfiles)
return (NULL);