1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

On probe error, if restart requested, skip any retries and recovery.

Just restart probe from the beginning immediately.
This commit is contained in:
Alexander Motin 2010-02-04 18:56:38 +00:00
parent 4218135bf7
commit 639c2d4fad
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=203499

View File

@ -693,7 +693,8 @@ probedone(struct cam_periph *periph, union ccb *done_ccb)
ident_buf = &path->device->ident_data;
if ((done_ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) {
device_fail: if (cam_periph_error(done_ccb, 0, 0, NULL) == ERESTART) {
device_fail: if ((!softc->restart) &&
cam_periph_error(done_ccb, 0, 0, NULL) == ERESTART) {
return;
} else if ((done_ccb->ccb_h.status & CAM_DEV_QFRZN) != 0) {
/* Don't wedge the queue */