Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Sep 2010 05:17:19 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r212991 - head/sys/cam
Message-ID:  <201009220517.o8M5HJHn017361@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Wed Sep 22 05:17:18 2010
New Revision: 212991
URL: http://svn.freebsd.org/changeset/base/212991

Log:
  Decrease poll interval from 1000 to 100us. This significantly reduces
  kernel dump time, especially with minidump.

Modified:
  head/sys/cam/cam_xpt.c

Modified: head/sys/cam/cam_xpt.c
==============================================================================
--- head/sys/cam/cam_xpt.c	Wed Sep 22 04:48:39 2010	(r212990)
+++ head/sys/cam/cam_xpt.c	Wed Sep 22 05:17:18 2010	(r212991)
@@ -2914,7 +2914,7 @@ xpt_polled_action(union ccb *start_ccb)
 	struct	  cam_ed *dev;
 
 
-	timeout = start_ccb->ccb_h.timeout;
+	timeout = start_ccb->ccb_h.timeout * 10;
 	sim = start_ccb->ccb_h.path->bus->sim;
 	devq = sim->devq;
 	dev = start_ccb->ccb_h.path->device;
@@ -2930,7 +2930,7 @@ xpt_polled_action(union ccb *start_ccb)
 
 	while(((devq != NULL && devq->send_openings <= 0) ||
 	   dev->ccbq.dev_openings < 0) && (--timeout > 0)) {
-		DELAY(1000);
+		DELAY(100);
 		(*(sim->sim_poll))(sim);
 		camisr_runqueue(&sim->sim_doneq);
 	}
@@ -2946,7 +2946,7 @@ xpt_polled_action(union ccb *start_ccb)
 			if ((start_ccb->ccb_h.status  & CAM_STATUS_MASK)
 			    != CAM_REQ_INPROG)
 				break;
-			DELAY(1000);
+			DELAY(100);
 		}
 		if (timeout == 0) {
 			/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009220517.o8M5HJHn017361>