diff options
author | jhb <jhb@FreeBSD.org> | 2007-02-27 17:23:29 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2007-02-27 17:23:29 +0000 |
commit | 9081d442434a29679b0bafe249708a1bd48bbfde (patch) | |
tree | a0597a39b0c2d93af237d119ce7da913a8a44962 /sys/geom/geom_io.c | |
parent | 3a7dab48bd395f66d9af79696af0534c63ae92f2 (diff) | |
download | FreeBSD-src-9081d442434a29679b0bafe249708a1bd48bbfde.zip FreeBSD-src-9081d442434a29679b0bafe249708a1bd48bbfde.tar.gz |
Use pause() rather than tsleep() on stack variables and function pointers.
Diffstat (limited to 'sys/geom/geom_io.c')
-rw-r--r-- | sys/geom/geom_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_io.c b/sys/geom/geom_io.c index a074534..beb74fe 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); - tsleep(&error, PRIBIO, "g_down", hz/10); + pause("g_down", hz/10); pace--; } error = g_io_check(bp); |