summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2012-06-22 16:20:13 +0000
committermav <mav@FreeBSD.org>2012-06-22 16:20:13 +0000
commit1e34717b22f39841c6ec7cce9e7fd4c765cdf87e (patch)
tree6915f044e672cf24570381def953926d700aab07
parent876c4e16e719ec945b93412a8fe714d812a1eecc (diff)
downloadFreeBSD-src-1e34717b22f39841c6ec7cce9e7fd4c765cdf87e.zip
FreeBSD-src-1e34717b22f39841c6ec7cce9e7fd4c765cdf87e.tar.gz
Don't print SCSI Queue Full and CAM_REQUEUE_REQ statuses as errors if they
were handled and retried. They are part of normal operation for SCSI TCQ. MFC after: 3 days
-rw-r--r--sys/cam/cam_periph.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c
index 5df9f5b..6df9144 100644
--- a/sys/cam/cam_periph.c
+++ b/sys/cam/cam_periph.c
@@ -1354,6 +1354,7 @@ camperiphscsistatuserror(union ccb *ccb, union ccb **orig_ccb,
}
*timeout = 0;
error = ERESTART;
+ *print = 0;
break;
}
/* FALLTHROUGH */
@@ -1683,8 +1684,10 @@ cam_periph_error(union ccb *ccb, cam_flags camflags,
} else if (sense_flags & SF_NO_RETRY) {
error = EIO;
action_string = "Retry was blocked";
- } else
+ } else {
error = ERESTART;
+ print = 0;
+ }
break;
case CAM_RESRC_UNAVAIL:
/* Wait a bit for the resource shortage to abate. */
OpenPOWER on IntegriCloud