geom_journal: Only stop the switcher process if one was started.

PR:		243196
MFC after:	1 week
This commit is contained in:
Mark Johnston 2020-04-03 13:57:41 +00:00
parent 3035d538a4
commit c205ac921b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=359595

View File

@ -2757,7 +2757,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);