mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-05 05:49:27 +00:00
Before calling g_orphan_provider(), add G_PF_WITHER flag, so GEOM will know
to destroy it. PR: kern/81758 Submitted by: trasz <trasz@buziaczek.pl> MFC after: 3 days
This commit is contained in:
parent
ed2fc9673b
commit
0499edf459
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148092
@ -124,6 +124,7 @@ g_concat_remove_disk(struct g_concat_disk *disk)
|
||||
|
||||
disk->d_consumer = NULL;
|
||||
if (sc->sc_provider != NULL) {
|
||||
sc->sc_provider->flags |= G_PF_WITHER;
|
||||
g_orphan_provider(sc->sc_provider, ENXIO);
|
||||
sc->sc_provider = NULL;
|
||||
G_CONCAT_DEBUG(0, "Device %s removed.", sc->sc_name);
|
||||
|
@ -171,6 +171,7 @@ g_stripe_remove_disk(struct g_consumer *cp)
|
||||
|
||||
sc->sc_disks[no] = NULL;
|
||||
if (sc->sc_provider != NULL) {
|
||||
sc->sc_provider->flags |= G_PF_WITHER;
|
||||
g_orphan_provider(sc->sc_provider, ENXIO);
|
||||
sc->sc_provider = NULL;
|
||||
G_STRIPE_DEBUG(0, "Device %s removed.", sc->sc_name);
|
||||
|
Loading…
Reference in New Issue
Block a user