Date: Tue, 22 Sep 2009 22:23:52 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r197421 - head/sys/cam Message-ID: <200909222223.n8MMNqfK034231@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909222223.n8MMNqfK034231>