svn commit: r208548 - head/sys/dev/isp

Matt Jacob mjacob at FreeBSD.org
Tue May 25 20:19:45 UTC 2010


Author: mjacob
Date: Tue May 25 20:19:45 2010
New Revision: 208548
URL: http://svn.freebsd.org/changeset/base/208548

Log:
  Don't leak CCBs for every ABORT.
  
  Submitted by:	Ken Merry
  MFC after:	One week

Modified:
  head/sys/dev/isp/isp_freebsd.c

Modified: head/sys/dev/isp/isp_freebsd.c
==============================================================================
--- head/sys/dev/isp/isp_freebsd.c	Tue May 25 20:19:31 2010	(r208547)
+++ head/sys/dev/isp/isp_freebsd.c	Tue May 25 20:19:45 2010	(r208548)
@@ -4421,7 +4421,10 @@ isp_action(struct cam_sim *sim, union cc
 			ccb->ccb_h.status = CAM_REQ_INVALID;
 			break;
 		}
-		xpt_done(ccb);
+		/*
+		 * This is not a queued CCB, so the caller expects it to be
+		 * complete when control is returned.
+		 */
 		break;
 	}
 #define	IS_CURRENT_SETTINGS(c)	(c->type == CTS_TYPE_CURRENT_SETTINGS)


More information about the svn-src-all mailing list