diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-12-26 20:46:30 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-12-26 20:46:30 +0000 |
| commit | 4fbfd368dda848e1f338f28d391105f37c25844a (patch) | |
| tree | b8790b3730bc8d66caa79d7f7b6a7119684c7c78 | |
| parent | cd4b1352fa9693c340a290d4b19744246120becc (diff) | |
Notes
| -rw-r--r-- | sys/geom/geom_subr.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c index 7fc15a1ab07e..954c616b4b82 100644 --- a/sys/geom/geom_subr.c +++ b/sys/geom/geom_subr.c @@ -96,11 +96,9 @@ g_new_geomf(struct g_class *mp, const char *fmt, ...) g_topology_assert(); va_start(ap, fmt); - mtx_lock(&Giant); sb = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND); sbuf_vprintf(sb, fmt, ap); sbuf_finish(sb); - mtx_unlock(&Giant); gp = g_malloc(sizeof *gp, M_WAITOK | M_ZERO); gp->protect = 0x020016601; gp->name = g_malloc(sbuf_len(sb) + 1, M_WAITOK | M_ZERO); @@ -175,11 +173,9 @@ g_new_providerf(struct g_geom *gp, const char *fmt, ...) g_topology_assert(); va_start(ap, fmt); - mtx_lock(&Giant); sb = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND); sbuf_vprintf(sb, fmt, ap); sbuf_finish(sb); - mtx_unlock(&Giant); pp = g_malloc(sizeof *pp + sbuf_len(sb) + 1, M_WAITOK | M_ZERO); pp->protect = 0x020016603; pp->name = (char *)(pp + 1); |
