Author: mav
Date: Sun Oct 24 17:40:19 2010
New Revision: 214285
URL: http://svn.freebsd.org/changeset/base/214285

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

Modified:
  stable/8/sys/cam/cam_xpt.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/cam/cam_xpt.c
==============================================================================
--- stable/8/sys/cam/cam_xpt.c  Sun Oct 24 17:28:25 2010        (r214284)
+++ stable/8/sys/cam/cam_xpt.c  Sun Oct 24 17:40:19 2010        (r214285)
@@ -2876,7 +2876,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;
@@ -2892,7 +2892,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);
        }
@@ -2908,7 +2908,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) {
                        /*
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to