Author: markj
Date: Fri Apr 10 01:23:06 2020
New Revision: 359765
URL: https://svnweb.freebsd.org/changeset/base/359765

Log:
  MFC r359595:
  geom_journal: Only stop the switcher process if one was started.
  
  PR:   243196

Modified:
  stable/12/sys/geom/journal/g_journal.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/geom/journal/g_journal.c
==============================================================================
--- stable/12/sys/geom/journal/g_journal.c      Fri Apr 10 00:31:52 2020        
(r359764)
+++ stable/12/sys/geom/journal/g_journal.c      Fri Apr 10 01:23:06 2020        
(r359765)
@@ -2749,7 +2749,8 @@ g_journal_fini(struct g_class *mp)
        }
        if (g_journal_event_lowmem != NULL)
                EVENTHANDLER_DEREGISTER(vm_lowmem, g_journal_event_lowmem);
-       g_journal_stop_switcher();
+       if (g_journal_switcher_proc != NULL)
+               g_journal_stop_switcher();
 }
 
 DECLARE_GEOM_CLASS(g_journal_class, g_journal);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to