summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2009-09-06 19:33:13 +0000
committermav <mav@FreeBSD.org>2009-09-06 19:33:13 +0000
commit9980b82769e3b0d18720b4381b8426d51337878b (patch)
treea5b4340b15d80f2d3f8b74852c387b6c9129259c /sys/geom
parentc72f8f5ba8562637ddb67724641056a0695cccbc (diff)
downloadFreeBSD-src-9980b82769e3b0d18720b4381b8426d51337878b.zip
FreeBSD-src-9980b82769e3b0d18720b4381b8426d51337878b.tar.gz
MFp4:
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.
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/geom_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/geom_io.c b/sys/geom/geom_io.c
index 61ca41c..c95840a 100644
--- a/sys/geom/geom_io.c
+++ b/sys/geom/geom_io.c
@@ -567,7 +567,7 @@ g_io_schedule_down(struct thread *tp __unused)
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");
@@ -672,7 +672,7 @@ g_io_schedule_up(struct thread *tp __unused)
}
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);
}
}
OpenPOWER on IntegriCloud