summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2000-07-05 06:44:17 +0000
committermjacob <mjacob@FreeBSD.org>2000-07-05 06:44:17 +0000
commite51ae31c23ccd84f018e98edcebd89ae9d8a1e88 (patch)
treef88e5980da199ec38b0423d1dfff0e2232c8e656 /sys
parentff88d7319b36a4d89ba92233dfcd104ee7f7ba3f (diff)
downloadFreeBSD-src-e51ae31c23ccd84f018e98edcebd89ae9d8a1e88.zip
FreeBSD-src-e51ae31c23ccd84f018e98edcebd89ae9d8a1e88.tar.gz
Oops! If we're deciding a command is now really dead, make *darned*
sure that it really is by issuing a ISPCTL_ABORT_CMD just on the off chance the f/w will start it up again and, ha ha, start using the DMA resources we gave it but are now taking away.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/isp/isp_freebsd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/isp/isp_freebsd.c b/sys/dev/isp/isp_freebsd.c
index d1c513c..2f371d2 100644
--- a/sys/dev/isp/isp_freebsd.c
+++ b/sys/dev/isp/isp_freebsd.c
@@ -1254,6 +1254,15 @@ isp_watchdog(void *arg)
isp->isp_name, handle, r));
xpt_done((union ccb *) xs);
} else if (XS_CMD_GRACE_P(xs)) {
+ /*
+ * Make sure the command is *really* dead before we
+ * release the handle (and DMA resources) for reuse.
+ */
+ (void) isp_control(isp, ISPCTL_ABORT_CMD, arg);
+
+ /*
+ * After this point, the comamnd is really dead.
+ */
if (XS_XFRLEN(xs)) {
ISP_DMAFREE(isp, xs, handle);
}
OpenPOWER on IntegriCloud