hangs after hard I/O error in some cases; fix from Chris Torek
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 13 Nov 1987 09:22:36 +0000 (01:22 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 13 Nov 1987 09:22:36 +0000 (01:22 -0800)
SCCS-vsn: sys/vax/uba/ts.c 7.4

usr/src/sys/vax/uba/ts.c

index ea9aae3..7f1c9a0 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)ts.c        7.3 (Berkeley) %G%
+ *     @(#)ts.c        7.4 (Berkeley) %G%
  */
 
 #include "ts.h"
  */
 
 #include "ts.h"
@@ -427,8 +427,10 @@ tsstart(um)
         * Start the controller if there is something for it to do.
         */
 loop:
         * Start the controller if there is something for it to do.
         */
 loop:
-       if ((bp = um->um_tab.b_actf->b_actf) == NULL)
+       if ((bp = um->um_tab.b_actf->b_actf) == NULL) {
+               um->um_tab.b_active = 0;
                return;
                return;
+       }
        tsunit = TSUNIT(bp->b_dev);
        ui = tsdinfo[tsunit];
        sc = &ts_softc[tsunit];
        tsunit = TSUNIT(bp->b_dev);
        ui = tsdinfo[tsunit];
        sc = &ts_softc[tsunit];