svn commit: r212875 - stable/7/sys/geom

Alexander Motin mav at FreeBSD.org
Sun Sep 19 19:51:15 UTC 2010


Author: mav
Date: Sun Sep 19 19:51:14 2010
New Revision: 212875
URL: http://svn.freebsd.org/changeset/base/212875

Log:
  MFC r196904:
  Remove msleep() timeout from g_io_schedule_up/down(). It works fine
  without it, saving few percents of CPU on high request rates without
  need to rearm callout twice per request.

Modified:
  stable/7/sys/geom/geom_io.c
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/geom/geom_io.c
==============================================================================
--- stable/7/sys/geom/geom_io.c	Sun Sep 19 19:43:05 2010	(r212874)
+++ stable/7/sys/geom/geom_io.c	Sun Sep 19 19:51:14 2010	(r212875)
@@ -485,7 +485,7 @@ g_io_schedule_down(struct thread *tp __u
 		if (bp == NULL) {
 			CTR0(KTR_GEOM, "g_down going to sleep");
 			msleep(&g_wait_down, &g_bio_run_down.bio_queue_lock,
-			    PRIBIO | PDROP, "-", hz/10);
+			    PRIBIO | PDROP, "-", 0);
 			continue;
 		}
 		CTR0(KTR_GEOM, "g_down has work to do");
@@ -590,7 +590,7 @@ g_io_schedule_up(struct thread *tp __unu
 		}
 		CTR0(KTR_GEOM, "g_up going to sleep");
 		msleep(&g_wait_up, &g_bio_run_up.bio_queue_lock,
-		    PRIBIO | PDROP, "-", hz/10);
+		    PRIBIO | PDROP, "-", 0);
 	}
 }
 


More information about the svn-src-stable-7 mailing list