Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Call scsipi_channel_thaw() after scsipi_done() so...



details:   https://anonhg.NetBSD.org/src/rev/3af4cf2833d5
branches:  trunk
changeset: 510238:3af4cf2833d5
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Wed May 23 15:51:32 2001 +0000

description:
Call scsipi_channel_thaw() after scsipi_done() so that command ordering
is preserved.

diffstat:

 sys/dev/ic/siop.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (31 lines):

diff -r 78b24bfb1d53 -r 3af4cf2833d5 sys/dev/ic/siop.c
--- a/sys/dev/ic/siop.c Wed May 23 15:50:32 2001 +0000
+++ b/sys/dev/ic/siop.c Wed May 23 15:51:32 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: siop.c,v 1.43 2001/04/30 02:17:55 lukem Exp $  */
+/*     $NetBSD: siop.c,v 1.44 2001/05/23 15:51:32 bouyer Exp $ */
 
 /*
  * Copyright (c) 2000 Manuel Bouyer.
@@ -937,16 +937,16 @@
        else
                restart = 1;
        siop_lun->siop_tag[tag].active = NULL;
+       siop_scsicmd_end(siop_cmd);
+       if (freetarget && siop_target->status == TARST_PROBING)
+               siop_del_dev(sc, target, lun);
+       if (restart)
+               CALL_SCRIPT(Ent_script_sched);
        if (sc->sc_flags & SCF_CHAN_NOSLOT) {
                /* a command terminated, so we have free slots now */
                sc->sc_flags &= ~SCF_CHAN_NOSLOT;
                scsipi_channel_thaw(&sc->sc_chan, 1);
        }
-       siop_scsicmd_end(siop_cmd);
-       if (freetarget && siop_target->status == TARST_PROBING)
-               siop_del_dev(sc, target, lun);
-       if (restart)
-               CALL_SCRIPT(Ent_script_sched);
                
        return 1;
 }



Home | Main Index | Thread Index | Old Index