From baa93599f97b9e9220d4d14234a2caab8b465eac Mon Sep 17 00:00:00 2001 From: Peter Avalos Date: Sat, 1 Dec 2007 22:54:18 +0000 Subject: [PATCH] There should be no need to retry when the CCB status code is CAM_LUN_INVALID or CAM_TID_INVALID. This avoids crashes in camisr() when umass devices are unplugged during probing. Obtained-from: FreeBSD --- sys/bus/cam/cam_periph.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/bus/cam/cam_periph.c b/sys/bus/cam/cam_periph.c index 885028c971..8e45f683bc 100644 --- a/sys/bus/cam/cam_periph.c +++ b/sys/bus/cam/cam_periph.c @@ -27,7 +27,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/sys/cam/cam_periph.c,v 1.24.2.3 2003/01/25 19:04:40 dillon Exp $ - * $DragonFly: src/sys/bus/cam/cam_periph.c,v 1.37 2007/12/01 22:21:17 pavalos Exp $ + * $DragonFly: src/sys/bus/cam/cam_periph.c,v 1.38 2007/12/01 22:54:18 pavalos Exp $ */ #include @@ -1629,6 +1629,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: -- 2.11.4.GIT