Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/mpr/mpr_sas_lsi.c
Show First 20 Lines • Show All 1,266 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
static void | static void | ||||
mprsas_stop_unit_done(struct cam_periph *periph, union ccb *done_ccb) | mprsas_stop_unit_done(struct cam_periph *periph, union ccb *done_ccb) | ||||
{ | { | ||||
struct mprsas_softc *sassc; | struct mprsas_softc *sassc; | ||||
char path_str[64]; | char path_str[64]; | ||||
if (done_ccb == NULL) | |||||
return; | |||||
sassc = (struct mprsas_softc *)done_ccb->ccb_h.ppriv_ptr1; | sassc = (struct mprsas_softc *)done_ccb->ccb_h.ppriv_ptr1; | ||||
xpt_path_string(done_ccb->ccb_h.path, path_str, sizeof(path_str)); | xpt_path_string(done_ccb->ccb_h.path, path_str, sizeof(path_str)); | ||||
mpr_dprint(sassc->sc, MPR_INFO, "Completing stop unit for %s\n", | mpr_dprint(sassc->sc, MPR_INFO, "Completing stop unit for %s\n", | ||||
path_str); | path_str); | ||||
if (done_ccb == NULL) | |||||
return; | |||||
/* | /* | ||||
* Nothing more to do except free the CCB and path. If the command | * Nothing more to do except free the CCB and path. If the command | ||||
* timed out, an abort reset, then target reset will be issued during | * timed out, an abort reset, then target reset will be issued during | ||||
* the SCSI Command process. | * the SCSI Command process. | ||||
*/ | */ | ||||
xpt_free_path(done_ccb->ccb_h.path); | xpt_free_path(done_ccb->ccb_h.path); | ||||
xpt_free_ccb(done_ccb); | xpt_free_ccb(done_ccb); | ||||
▲ Show 20 Lines • Show All 119 Lines • Show Last 20 Lines |