summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_io.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-05-20 10:03:15 +0000
committerphk <phk@FreeBSD.org>2002-05-20 10:03:15 +0000
commit0d0d0abc101acc6be03792b1dfcd57f92eb5a7e2 (patch)
tree7083aa144f3e824c70e7dae41183442d6ce709cf /sys/geom/geom_io.c
parent110842c75ed00588986c685c3c68abd01c9d5f6a (diff)
downloadFreeBSD-src-0d0d0abc101acc6be03792b1dfcd57f92eb5a7e2.zip
FreeBSD-src-0d0d0abc101acc6be03792b1dfcd57f92eb5a7e2.tar.gz
Don't grab Giant around malloc(9) and free(9).
Don't grab Giant around wakeup(9). Don't print verbose messages about each device found in geom_dev. Various cleanups. Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/geom/geom_io.c')
-rw-r--r--sys/geom/geom_io.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/geom/geom_io.c b/sys/geom/geom_io.c
index c3e7bd1..9fadc7c 100644
--- a/sys/geom/geom_io.c
+++ b/sys/geom/geom_io.c
@@ -302,9 +302,7 @@ g_io_request(struct bio *bp, struct g_consumer *cp)
bp, bp->bio_from, bp->bio_from->geom->name,
bp->bio_to, bp->bio_to->name, bp->bio_cmd);
g_bioq_enqueue_tail(bp, &g_bio_run_down);
- mtx_lock(&Giant);
wakeup(&g_wait_down);
- mtx_unlock(&Giant);
}
void
@@ -319,9 +317,7 @@ g_io_deliver(struct bio *bp)
g_bioq_enqueue_tail(bp, &g_bio_run_up);
- mtx_lock(&Giant);
wakeup(&g_wait_up);
- mtx_unlock(&Giant);
}
void
@@ -355,9 +351,7 @@ g_io_schedule_up(struct thread *tp __unused)
if (bp->bio_done != NULL) {
bp->bio_done(bp);
} else {
- mtx_lock(&Giant);
wakeup(bp);
- mtx_unlock(&Giant);
}
}
}
OpenPOWER on IntegriCloud