[Bug 221804] page fault during shutdown on a server with gjournaled partitions

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Aug 26 21:34:42 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221804

longwitz at incore.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |longwitz at incore.de

--- Comment #1 from longwitz at incore.de ---
I suggest the following patch to avoid the described problem:

--- g_journal.c.r322793 2017-08-24 15:58:33.702658000 +0200
+++ g_journal.c 2017-08-26 23:14:04.616049000 +0200
@@ -2433,6 +2433,7 @@
                    sc->sc_current_count);
        }

+       gp->softc = NULL;
        LIST_FOREACH(cp, &gp->consumer, consumer) {
                if (cp->acr + cp->acw + cp->ace > 0)
                        g_access(cp, -1, -1, -1);
@@ -2444,7 +2445,6 @@
                 */
                g_post_event(g_journal_destroy_consumer, cp, M_WAITOK, NULL);
        }
-       gp->softc = NULL;
        g_wither_geom(gp, ENXIO);
        free(sc, M_JOURNAL);
        return (0);

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list