(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:
thomas 2003-09-21 08:42:32 +00:00
parent 980e7399a6
commit 63eb46e59f

View File

@ -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");