Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/sys/dev pullup 1.60->1.61 (thorpej): add missing splbio...



details:   https://anonhg.NetBSD.org/src/rev/37c69e870f62
branches:  netbsd-1-4
changeset: 468413:37c69e870f62
user:      perry <perry%NetBSD.org@localhost>
date:      Wed Apr 21 22:52:54 1999 +0000

description:
pullup 1.60->1.61 (thorpej): add missing splbio()/spx() pairs.

diffstat:

 sys/dev/vnd.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r e31436e3fbe6 -r 37c69e870f62 sys/dev/vnd.c
--- a/sys/dev/vnd.c     Wed Apr 21 18:42:04 1999 +0000
+++ b/sys/dev/vnd.c     Wed Apr 21 22:52:54 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vnd.c,v 1.60 1998/11/12 22:39:57 thorpej Exp $ */
+/*     $NetBSD: vnd.c,v 1.60.4.1 1999/04/21 22:52:54 perry Exp $       */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -377,7 +377,9 @@
        flags = bp->b_flags | B_CALL;
 
        /* Allocate a header for this transfer and link it to the buffer */
+       s = splbio();
        vnx = VND_GETXFER(vnd);
+       splx(s);
        vnx->vx_flags = VX_BUSY;
        vnx->vx_error = 0;
        vnx->vx_pending = 0;
@@ -429,7 +431,9 @@
                            vnd->sc_vp, vp, bn, nbn, sz);
 #endif
 
+               s = splbio();
                nbp = VND_GETBUF(vnd);
+               splx(s);
                nbp->vb_buf.b_flags = flags;
                nbp->vb_buf.b_bcount = sz;
                nbp->vb_buf.b_bufsize = bp->b_bufsize;



Home | Main Index | Thread Index | Old Index