Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/scsi/scsi_cd.c
Show First 20 Lines • Show All 1,253 Lines • ▼ Show 20 Lines | if ((csio->ccb_h.status & CAM_STATUS_MASK) == CAM_REQ_CMP || | ||||
cam_release_devq(done_ccb->ccb_h.path, | cam_release_devq(done_ccb->ccb_h.path, | ||||
/*relsim_flags*/0, | /*relsim_flags*/0, | ||||
/*reduction*/0, | /*reduction*/0, | ||||
/*timeout*/0, | /*timeout*/0, | ||||
/*getcount_only*/0); | /*getcount_only*/0); | ||||
status = done_ccb->ccb_h.status; | status = done_ccb->ccb_h.status; | ||||
bzero(&cgd, sizeof(cgd)); | |||||
xpt_setup_ccb(&cgd.ccb_h, | xpt_setup_ccb(&cgd.ccb_h, | ||||
done_ccb->ccb_h.path, | done_ccb->ccb_h.path, | ||||
CAM_PRIORITY_NORMAL); | CAM_PRIORITY_NORMAL); | ||||
cgd.ccb_h.func_code = XPT_GDEV_TYPE; | cgd.ccb_h.func_code = XPT_GDEV_TYPE; | ||||
xpt_action((union ccb *)&cgd); | xpt_action((union ccb *)&cgd); | ||||
if (scsi_extract_sense_ccb(done_ccb, | if (scsi_extract_sense_ccb(done_ccb, | ||||
&error_code, &sense_key, &asc, &ascq)) | &error_code, &sense_key, &asc, &ascq)) | ||||
▲ Show 20 Lines • Show All 2,979 Lines • Show Last 20 Lines |