View | Details | Raw Unified | Return to bug 141740
Collapse All | Expand All

(-)g_journal.c 2009-12-18 12:25:20.000000000 +0000 (-1 / +2 lines)
Lines 2349-2355 Link Here
2349
       wakeup(sc);
2349
       wakeup(sc);
2350
       while (sc->sc_worker != NULL)
2350
       while (sc->sc_worker != NULL)
2351
               msleep(&sc->sc_worker, &sc->sc_mtx, PRIBIO, "gj:destroy", 0);
2351
               msleep(&sc->sc_worker, &sc->sc_mtx, PRIBIO, "gj:destroy", 0);
2352
       mtx_destroy(&sc->sc_mtx);
2352
2353
2353
2354
       if (pp != NULL) {
2354
       if (pp != NULL) {
2355
               GJ_DEBUG(1, "Marking %s as clean.", sc->sc_name);
2355
               GJ_DEBUG(1, "Marking %s as clean.", sc->sc_name);
Lines 2378-2383 Link Here
2378
               g_post_event(g_journal_destroy_consumer, cp, M_WAITOK, NULL);
2378
               g_post_event(g_journal_destroy_consumer, cp, M_WAITOK, NULL);
2379
       }
2379
       }
2380
       gp->softc = NULL;
2380
       gp->softc = NULL;
2381
       mtx_destroy(&sc->sc_mtx);
2381
       g_wither_geom(gp, ENXIO);
2382
       g_wither_geom(gp, ENXIO);
2382
       free(sc, M_JOURNAL);
2383
       free(sc, M_JOURNAL);
2383
       return (0);
2384
       return (0);

Return to bug 141740