From 9a014e6f690ec4f1070fb28e9fceb01df4120742 Mon Sep 17 00:00:00 2001 From: Ian Dowse Date: Sun, 8 Jan 2006 20:04:55 +0000 Subject: [PATCH] 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. --- sys/cam/cam_periph.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c index 604d08fc940..e9eb973890f 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: