diff options
author | phk <phk@FreeBSD.org> | 2002-10-04 10:38:36 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-10-04 10:38:36 +0000 |
commit | 614e9a77740d0b87bb6b0da81dcf347a3ccc895b (patch) | |
tree | d17e06f819e6503e669515647ae9a8c5245bf86e /sys/geom/geom_dev.c | |
parent | 8891e95872a3b7394d1eb5ea93814e7e50689821 (diff) | |
download | FreeBSD-src-614e9a77740d0b87bb6b0da81dcf347a3ccc895b.zip FreeBSD-src-614e9a77740d0b87bb6b0da81dcf347a3ccc895b.tar.gz |
Properly isolate the locking domains of sysctl from the topology lock
for the sysctls which report the configuration.
Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/geom/geom_dev.c')
-rw-r--r-- | sys/geom/geom_dev.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/geom/geom_dev.c b/sys/geom/geom_dev.c index 55abe74..c926e18 100644 --- a/sys/geom/geom_dev.c +++ b/sys/geom/geom_dev.c @@ -231,7 +231,9 @@ g_dev_ioctl(dev_t dev, u_long cmd, caddr_t data, int fflag, struct thread *td) int i, error; u_int u; struct g_ioctl *gio; +#if 0 struct sbuf *usb, *sb; +#endif gp = dev->si_drv1; cp = dev->si_drv2; @@ -272,6 +274,7 @@ g_dev_ioctl(dev_t dev, u_long cmd, caddr_t data, int fflag, struct thread *td) if (!error) dev->si_flags |= SI_DUMPDEV; break; +#if 0 case GEOMGETCONF: /* we bogusly pass cp to avoid getting any consumers listed */ sb = g_conf_specific(gp2->class, gp2, pp2, cp); @@ -283,6 +286,7 @@ g_dev_ioctl(dev_t dev, u_long cmd, caddr_t data, int fflag, struct thread *td) if (!error) usb->s_len = sbuf_len(sb); break; +#endif default: gio = g_malloc(sizeof *gio, M_WAITOK); gio->cmd = cmd; |