summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authorthomas <thomas@FreeBSD.org>2003-09-21 08:42:32 +0000
committerthomas <thomas@FreeBSD.org>2003-09-21 08:42:32 +0000
commit77e9f11b2d5e6c75a5302d62606e9ee2f7c51b44 (patch)
treeb3cd1e59ab8b767432359a36614063e0c233fc12 /sys/cam
parent4d5be919358b0052801ca4319ff7ac147d9b4469 (diff)
downloadFreeBSD-src-77e9f11b2d5e6c75a5302d62606e9ee2f7c51b44.zip
FreeBSD-src-77e9f11b2d5e6c75a5302d62606e9ee2f7c51b44.tar.gz
(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
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/cam_periph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c
index 23a928f..f78177a 100644
--- a/sys/cam/cam_periph.c
+++ b/sys/cam/cam_periph.c
@@ -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");
OpenPOWER on IntegriCloud