Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Add a couple of missing splbio()/splx() pairs that c...
details: https://anonhg.NetBSD.org/src/rev/f39023e425eb
branches: trunk
changeset: 472116:f39023e425eb
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Apr 21 22:14:15 1999 +0000
description:
Add a couple of missing splbio()/splx() pairs that caused pool corruption.
diffstat:
sys/dev/vnd.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (29 lines):
diff -r ec27633b8477 -r f39023e425eb sys/dev/vnd.c
--- a/sys/dev/vnd.c Wed Apr 21 21:58:29 1999 +0000
+++ b/sys/dev/vnd.c Wed Apr 21 22:14:15 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.61 1999/04/21 22:14:15 thorpej 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