Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/scsi/scsi_da.c
Show First 20 Lines • Show All 1,913 Lines • ▼ Show 20 Lines | if (xpt_path_periph(ccb->ccb_h.path) != periph && | ||||
disk_media_changed(softc->disk, M_NOWAIT); | disk_media_changed(softc->disk, M_NOWAIT); | ||||
} else if (asc == 0x3F && ascq == 0x03) { | } else if (asc == 0x3F && ascq == 0x03) { | ||||
xpt_print(ccb->ccb_h.path, | xpt_print(ccb->ccb_h.path, | ||||
"INQUIRY data has changed\n"); | "INQUIRY data has changed\n"); | ||||
softc->flags &= ~DA_FLAG_PROBED; | softc->flags &= ~DA_FLAG_PROBED; | ||||
dareprobe(periph); | dareprobe(periph); | ||||
} | } | ||||
} | } | ||||
cam_periph_async(periph, code, path, arg); | |||||
break; | break; | ||||
} | } | ||||
case AC_SCSI_AEN: | case AC_SCSI_AEN: | ||||
softc = (struct da_softc *)periph->softc; | softc = (struct da_softc *)periph->softc; | ||||
if (!cam_iosched_has_work_flags(softc->cam_iosched, DA_WORK_TUR)) { | if (!cam_iosched_has_work_flags(softc->cam_iosched, DA_WORK_TUR)) { | ||||
if (cam_periph_acquire(periph) == CAM_REQ_CMP) { | if (cam_periph_acquire(periph) == CAM_REQ_CMP) { | ||||
cam_iosched_set_work_flags(softc->cam_iosched, DA_WORK_TUR); | cam_iosched_set_work_flags(softc->cam_iosched, DA_WORK_TUR); | ||||
daschedule(periph); | daschedule(periph); | ||||
▲ Show 20 Lines • Show All 4,141 Lines • Show Last 20 Lines |