summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom/geom_io.c')
-rw-r--r--sys/geom/geom_io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/geom/geom_io.c b/sys/geom/geom_io.c
index d631670..488d409 100644
--- a/sys/geom/geom_io.c
+++ b/sys/geom/geom_io.c
@@ -348,6 +348,10 @@ g_io_schedule_down(struct thread *tp __unused)
continue;
}
g_bioq_unlock(&g_bio_run_down);
+ if (pace > 0) {
+ msleep(&error, NULL, PRIBIO, "g_down", hz/10);
+ pace--;
+ }
error = g_io_check(bp);
if (error) {
g_io_deliver(bp, error);
@@ -375,10 +379,6 @@ g_io_schedule_down(struct thread *tp __unused)
mtx_lock(&mymutex);
bp->bio_to->geom->start(bp);
mtx_unlock(&mymutex);
- if (pace) {
- pace--;
- break;
- }
}
}
OpenPOWER on IntegriCloud