From: beck Date: Wed, 26 Apr 2023 09:53:55 +0000 (+0000) Subject: Fix missing splbio() needed in nfs X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=bf1ec02c09efd4a7de2c964a923d19ec78cffe59;p=openbsd Fix missing splbio() needed in nfs ok claudio@ kettenis@ --- diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c index bfd31b6ad4d..02fa26e3e06 100644 --- a/sys/nfs/nfs_vnops.c +++ b/sys/nfs/nfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_vnops.c,v 1.191 2023/03/08 04:43:09 guenther Exp $ */ +/* $OpenBSD: nfs_vnops.c,v 1.192 2023/04/26 09:53:55 beck Exp $ */ /* $NetBSD: nfs_vnops.c,v 1.62.4.1 1996/07/08 20:26:52 jtc Exp $ */ /* @@ -3203,9 +3203,11 @@ nfs_writebp(struct buf *bp, int force) nfs_clearcommit(bp->b_vp->v_mount); } if (retv) { + int s = splbio(); buf_flip_dma(bp); if (force) bp->b_flags |= B_WRITEINPROG; + splx(s); VOP_STRATEGY(bp->b_vp, bp); }