diff options
author | scottl <scottl@FreeBSD.org> | 2013-09-25 17:16:21 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2013-09-25 17:16:21 +0000 |
commit | e9cc92746f45b2e0ad6e2997f3128b950e702770 (patch) | |
tree | ebaa28f9cc2c11e9c0022f0db7fff2cc3e92b88c /sys/dev/hptiop/hptiop.c | |
parent | e2e8dc4dbba38724bc3ce5c338d23ab3c6bfada4 (diff) | |
download | FreeBSD-src-e9cc92746f45b2e0ad6e2997f3128b950e702770.zip FreeBSD-src-e9cc92746f45b2e0ad6e2997f3128b950e702770.tar.gz |
Re-do r255853. Along with adding back the API/ABI changes from the
original, this hides the contents of cam_compat.h from ktrace/kdump/truss,
avoiding problems there. There are no user-servicable parts in there, so
no need for those tools to be groping around in there.
Approved by: re
Diffstat (limited to 'sys/dev/hptiop/hptiop.c')
-rw-r--r-- | sys/dev/hptiop/hptiop.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/hptiop/hptiop.c b/sys/dev/hptiop/hptiop.c index 50a9c43..6b83774 100644 --- a/sys/dev/hptiop/hptiop.c +++ b/sys/dev/hptiop/hptiop.c @@ -643,7 +643,7 @@ static void hptiop_request_callback_mvfrey(struct hpt_iop_hba * hba, ccb = (union ccb *)srb->ccb; - untimeout(hptiop_reset_adapter, hba, ccb->ccb_h.timeout_ch); + untimeout(hptiop_reset_adapter, hba, srb->timeout_ch); if (ccb->ccb_h.flags & CAM_CDB_POINTER) cdb = ccb->csio.cdb_io.cdb_ptr; @@ -2629,7 +2629,7 @@ static void hptiop_post_req_mvfrey(struct hpt_iop_hba *hba, BUS_SPACE_RD4_MVFREY2(inbound_write_ptr); if (req->header.type == IOP_REQUEST_TYPE_SCSI_COMMAND) { - ccb->ccb_h.timeout_ch = timeout(hptiop_reset_adapter, hba, 20*hz); + srb->timeout_ch = timeout(hptiop_reset_adapter, hba, 20*hz); } } @@ -2741,6 +2741,7 @@ static void hptiop_map_srb(void *arg, bus_dma_segment_t *segs, tmp_srb->phy_addr = phy_addr; } + callout_handle_init(&tmp_srb->timeout_ch); hptiop_free_srb(hba, tmp_srb); hba->srb[i] = tmp_srb; phy_addr += HPT_SRB_MAX_SIZE; |