Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/scsipi scsipi_free_xs() wants to be called at splbio...



details:   https://anonhg.NetBSD.org/src/rev/d3561438d2a3
branches:  trunk
changeset: 473645:d3561438d2a3
user:      pk <pk%NetBSD.org@localhost>
date:      Sat Jun 12 11:19:00 1999 +0000

description:
scsipi_free_xs() wants to be called at splbio; do it.

diffstat:

 sys/dev/scsipi/scsi_base.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 58cb407a2d04 -r d3561438d2a3 sys/dev/scsipi/scsi_base.c
--- a/sys/dev/scsipi/scsi_base.c        Sat Jun 12 10:58:47 1999 +0000
+++ b/sys/dev/scsipi/scsi_base.c        Sat Jun 12 11:19:00 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: scsi_base.c,v 1.66 1998/11/17 14:38:42 bouyer Exp $    */
+/*     $NetBSD: scsi_base.c,v 1.67 1999/06/12 11:19:00 pk Exp $        */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -92,7 +92,7 @@
        int flags;
 {
        struct scsipi_xfer *xs;
-       int error;
+       int error, s;
 
        SC_DEBUG(sc_link, SDEV_DB2, ("scsi_scsipi_cmd\n"));
 
@@ -121,7 +121,9 @@
         * we have finished with the xfer stuct, free it and
         * check if anyone else needs to be started up.
         */
+       s = splbio();
        scsipi_free_xs(xs, flags);
+       splx(s);
        return (error);
 }
 



Home | Main Index | Thread Index | Old Index