diff options
author | jhb <jhb@FreeBSD.org> | 2007-02-23 23:06:10 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2007-02-23 23:06:10 +0000 |
commit | 61da08318e61ba89994efed94d3375b1bdcff69b (patch) | |
tree | 5a5982bfc22dc52ef26abd8c64d36de520251b0c /sys/geom/geom_dev.c | |
parent | eeae7be803149057dfa3b5152d01661f0c8cd958 (diff) | |
download | FreeBSD-src-61da08318e61ba89994efed94d3375b1bdcff69b.zip FreeBSD-src-61da08318e61ba89994efed94d3375b1bdcff69b.tar.gz |
Use tsleep() rather than msleep() with a NULL mtx parameter.
Diffstat (limited to 'sys/geom/geom_dev.c')
-rw-r--r-- | sys/geom/geom_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |