Index: geom_io.c =================================================================== RCS file: /private/FreeBSD/src/sys/geom/geom_io.c,v retrieving revision 1.57 diff -u -p -r1.57 geom_io.c --- geom_io.c 11 Aug 2004 12:04:35 -0000 1.57 +++ geom_io.c 12 Aug 2004 16:31:07 -0000 @@ -53,7 +53,7 @@ static struct g_bioq g_bio_run_down; static struct g_bioq g_bio_run_up; static struct g_bioq g_bio_run_task; -static u_int pace; +static int slowdown; static uma_zone_t biozone; #include @@ -303,7 +303,7 @@ g_io_deliver(struct bio *bp, int error) bp->bio_children = 0; bp->bio_inbed = 0; g_io_request(bp, cp); - pace++; + slowdown = 1; return; } bp->bio_error = error; @@ -333,9 +333,9 @@ g_io_schedule_down(struct thread *tp __u continue; } g_bioq_unlock(&g_bio_run_down); - if (pace > 0) { + if (slowdown) { msleep(&error, NULL, PRIBIO, "g_down", hz/10); - pace--; + slowdown = 0; } error = g_io_check(bp); if (error) {