summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authoriedowse <iedowse@FreeBSD.org>2006-01-08 20:04:55 +0000
committeriedowse <iedowse@FreeBSD.org>2006-01-08 20:04:55 +0000
commit9160c8f22b841c8ddc66f6efd1fedb63ca7a7da3 (patch)
tree05505fc33c68c8ef851d00f1ffe30bd4a2f31d6d /sys/cam
parent3785e3b3f5bed85ba258bff6d20562d46ddcde76 (diff)
downloadFreeBSD-src-9160c8f22b841c8ddc66f6efd1fedb63ca7a7da3.zip
FreeBSD-src-9160c8f22b841c8ddc66f6efd1fedb63ca7a7da3.tar.gz
There should be no need to retry when the CCB status code is
CAM_LUN_INVALID or CAM_TID_INVALID. Retries were being triggered here when a umass device was unplugged, and while the retries themselves are probably harmless, they complicated finding the real SIM removal problems.
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/cam_periph.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c
index 604d08f..e9eb973 100644
--- a/sys/cam/cam_periph.c
+++ b/sys/cam/cam_periph.c
@@ -1656,6 +1656,8 @@ cam_periph_error(union ccb *ccb, cam_flags camflags,
case CAM_NO_HBA:
case CAM_PROVIDE_FAIL:
case CAM_REQ_TOO_BIG:
+ case CAM_LUN_INVALID:
+ case CAM_TID_INVALID:
error = EINVAL;
break;
case CAM_SCSI_BUS_RESET:
OpenPOWER on IntegriCloud