Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/nvme/nvme_sim.c
Show First 20 Lines • Show All 252 Lines • ▼ Show 20 Lines | case XPT_RESET_BUS: /* Reset the specified bus */ | ||||
* NVMe doesn't really support physically resetting the bus. It's part | * NVMe doesn't really support physically resetting the bus. It's part | ||||
* of the bus scanning dance, so return sucess to tell the process to | * of the bus scanning dance, so return sucess to tell the process to | ||||
* proceed. | * proceed. | ||||
*/ | */ | ||||
ccb->ccb_h.status = CAM_REQ_CMP; | ccb->ccb_h.status = CAM_REQ_CMP; | ||||
break; | break; | ||||
case XPT_NVME_IO: /* Execute the requested I/O operation */ | case XPT_NVME_IO: /* Execute the requested I/O operation */ | ||||
case XPT_NVME_ADMIN: /* or Admin operation */ | case XPT_NVME_ADMIN: /* or Admin operation */ | ||||
if (ctrlr->is_failed) { | |||||
ccb->ccb_h.status = CAM_DEV_NOT_THERE; | |||||
chuck: I'm not seeing a definition for `CAM_REQ_DEV_NOT_THERE`. Should this be `CAM_DEV_NOT_THERE`? | |||||
break; | |||||
} | |||||
mavUnsubmitted Not Done Inline ActionsIt is not a problem, but is it really needed? mav: It is not a problem, but is it really needed? | |||||
nvme_sim_nvmeio(sim, ccb); | nvme_sim_nvmeio(sim, ccb); | ||||
return; /* no done */ | return; /* no done */ | ||||
default: | default: | ||||
ccb->ccb_h.status = CAM_REQ_INVALID; | ccb->ccb_h.status = CAM_REQ_INVALID; | ||||
break; | break; | ||||
} | } | ||||
xpt_done(ccb); | xpt_done(ccb); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 119 Lines • Show Last 20 Lines |
I'm not seeing a definition for CAM_REQ_DEV_NOT_THERE. Should this be CAM_DEV_NOT_THERE?