Changeset View
Changeset View
Standalone View
Standalone View
head/sys/cam/mmc/mmc_xpt.c
Show First 20 Lines • Show All 235 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
struct ccb_pathinq cpi; | struct ccb_pathinq cpi; | ||||
cam_status status; | cam_status status; | ||||
struct cam_periph *old_periph; | struct cam_periph *old_periph; | ||||
int lock; | int lock; | ||||
CAM_DEBUG(path, CAM_DEBUG_TRACE, ("mmc_scan_lun\n")); | CAM_DEBUG(path, CAM_DEBUG_TRACE, ("mmc_scan_lun\n")); | ||||
xpt_path_inq(&cpi, periph->path); | xpt_path_inq(&cpi, path); | ||||
if (cpi.ccb_h.status != CAM_REQ_CMP) { | if (cpi.ccb_h.status != CAM_REQ_CMP) { | ||||
if (request_ccb != NULL) { | if (request_ccb != NULL) { | ||||
request_ccb->ccb_h.status = cpi.ccb_h.status; | request_ccb->ccb_h.status = cpi.ccb_h.status; | ||||
xpt_done(request_ccb); | xpt_done(request_ccb); | ||||
} | } | ||||
return; | return; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 828 Lines • Show Last 20 Lines |