svn commit: r197421 - head/sys/cam
Alexander Motin
mav at FreeBSD.org
Tue Sep 22 22:23:52 UTC 2009
Author: mav
Date: Tue Sep 22 22:23:52 2009
New Revision: 197421
URL: http://svn.freebsd.org/changeset/base/197421
Log:
MFp4:
If on sense request device returns no sence, give up and return,
or we may loop forever.
Modified:
head/sys/cam/cam_periph.c
Modified: head/sys/cam/cam_periph.c
==============================================================================
--- head/sys/cam/cam_periph.c Tue Sep 22 22:20:43 2009 (r197420)
+++ head/sys/cam/cam_periph.c Tue Sep 22 22:23:52 2009 (r197421)
@@ -1034,8 +1034,13 @@ camperiphdone(struct cam_periph *periph,
cam_error_print(saved_ccb, CAM_ESF_ALL,
CAM_EPF_ALL);
#endif
- xpt_done_ccb = TRUE;
+ } else {
+ saved_ccb->ccb_h.status &=
+ ~CAM_STATUS_MASK;
+ saved_ccb->ccb_h.status |=
+ CAM_AUTOSENSE_FAIL;
}
+ xpt_done_ccb = TRUE;
}
}
bcopy(done_ccb->ccb_h.saved_ccb_ptr, done_ccb,
More information about the svn-src-all
mailing list