From 61da08318e61ba89994efed94d3375b1bdcff69b Mon Sep 17 00:00:00 2001 From: jhb Date: Fri, 23 Feb 2007 23:06:10 +0000 Subject: Use tsleep() rather than msleep() with a NULL mtx parameter. --- sys/geom/geom_dev.c | 2 +- sys/geom/geom_io.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/geom') diff --git a/sys/geom/geom_dev.c b/sys/geom/geom_dev.c index 7b15559..c87dcdc 100644 --- a/sys/geom/geom_dev.c +++ b/sys/geom/geom_dev.c @@ -416,7 +416,7 @@ g_dev_orphan(struct g_consumer *cp) /* Wait for the cows to come home */ while (cp->nstart != cp->nend) - msleep(&dev, NULL, PRIBIO, "gdevorphan", hz / 10); + tsleep(&dev, PRIBIO, "gdevorphan", hz / 10); if (cp->acr > 0 || cp->acw > 0 || cp->ace > 0) g_access(cp, -cp->acr, -cp->acw, -cp->ace); diff --git a/sys/geom/geom_io.c b/sys/geom/geom_io.c index e8e00ed..a074534 100644 --- a/sys/geom/geom_io.c +++ b/sys/geom/geom_io.c @@ -492,7 +492,7 @@ g_io_schedule_down(struct thread *tp __unused) g_bioq_unlock(&g_bio_run_down); if (pace > 0) { CTR1(KTR_GEOM, "g_down pacing self (pace %d)", pace); - msleep(&error, NULL, PRIBIO, "g_down", hz/10); + tsleep(&error, PRIBIO, "g_down", hz/10); pace--; } error = g_io_check(bp); -- cgit v1.1