aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/isp
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>2000-07-05 06:44:17 +0000
committerMatt Jacob <mjacob@FreeBSD.org>2000-07-05 06:44:17 +0000
commit1fcf5deb4af55d5cfbd22a8e35aab315bde25a87 (patch)
tree642dac994564d63646c3bf076ca7338eb3010529 /sys/dev/isp
parent3e97a5b432d8fb9fee3c9a225c8aaa716942b037 (diff)
Notes
Diffstat (limited to 'sys/dev/isp')
-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 d1c513ce9cbd5..2f371d2f2e35f 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);
}