Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/scsipi Go to splbio() when calling scsipi_free_xs(), ...



details:   https://anonhg.NetBSD.org/src/rev/c089c458d701
branches:  trunk
changeset: 474006:c089c458d701
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Jun 25 18:58:54 1999 +0000

description:
Go to splbio() when calling scsipi_free_xs(), just like the SCSI counterpart.
Fixes PR #7853, Paul Dokas <dokas%cs.umn.edu@localhost>.

diffstat:

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

diffs (28 lines):

diff -r d89463394ae2 -r c089c458d701 sys/dev/scsipi/atapi_base.c
--- a/sys/dev/scsipi/atapi_base.c       Fri Jun 25 16:13:21 1999 +0000
+++ b/sys/dev/scsipi/atapi_base.c       Fri Jun 25 18:58:54 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atapi_base.c,v 1.11 1998/11/17 14:45:39 bouyer Exp $   */
+/*     $NetBSD: atapi_base.c,v 1.12 1999/06/25 18:58:54 thorpej Exp $  */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -216,7 +216,7 @@
        int flags;
 {
        struct scsipi_xfer *xs;
-       int error;
+       int error, s;
 
        SC_DEBUG(sc_link, SDEV_DB2, ("atapi_cmd\n"));
 
@@ -238,7 +238,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