(camperiphdone): When the cam_periph layer performs sense recovery,
completion of recovery is indicated by positioning the CAM_AUTOSNS_VALID bit in the status field of the CCB, not in the flags field. This fixes an endless loop of sense recovery actions. Reviewed by: ken
This commit is contained in:
parent
980e7399a6
commit
63eb46e59f
@ -975,7 +975,7 @@ camperiphdone(struct cam_periph *periph, union ccb *done_ccb)
|
||||
sense_key = saved_ccb->csio.sense_data.flags;
|
||||
sense_key &= SSD_KEY;
|
||||
if (sense_key != SSD_KEY_NO_SENSE) {
|
||||
saved_ccb->ccb_h.flags |=
|
||||
saved_ccb->ccb_h.status |=
|
||||
CAM_AUTOSNS_VALID;
|
||||
xpt_print_path(saved_ccb->ccb_h.path);
|
||||
printf("Recovered Sense\n");
|
||||
|
Loading…
Reference in New Issue
Block a user