diff options
author | phk <phk@FreeBSD.org> | 2003-05-02 06:22:32 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-05-02 06:22:32 +0000 |
commit | e39be99d0405038a849546f1c158e2e2d6413829 (patch) | |
tree | eb6e44e745608327ac3c08c932f7fccc56446293 /sys/geom/geom_disk.c | |
parent | 887418fd11e01f6caf9e0de8255aa16e326897e3 (diff) | |
download | FreeBSD-src-e39be99d0405038a849546f1c158e2e2d6413829.zip FreeBSD-src-e39be99d0405038a849546f1c158e2e2d6413829.tar.gz |
Use g_wither_geom() for cleanup.
Diffstat (limited to 'sys/geom/geom_disk.c')
-rw-r--r-- | sys/geom/geom_disk.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c index ec2e9b8..f36ec05 100644 --- a/sys/geom/geom_disk.c +++ b/sys/geom/geom_disk.c @@ -354,10 +354,9 @@ disk_destroy(struct disk *dp) gp = dp->d_geom; if (gp == NULL) return; - gp->flags |= G_GEOM_WITHER; gp->softc = NULL; - g_orphan_provider(LIST_FIRST(&gp->provider), ENXIO); devstat_remove_entry(dp->d_devstat); + g_wither_geom(gp, ENXIO); } static void |