From 5e2d62ddc1db48ac42749929ec4b97e175bf28d0 Mon Sep 17 00:00:00 2001 From: Jorgen Lundman Date: Mon, 24 May 2021 09:18:30 +0900 Subject: [PATCH] macOS: zfs_kmod_fini() calls taskq_cancel_id() so we must unload system_taskq_fini() after the call to zfs_kmod_fini() --- module/os/macos/zfs/zfs_osx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/os/macos/zfs/zfs_osx.cpp b/module/os/macos/zfs/zfs_osx.cpp index 8def1240a931..106b97a136cc 100644 --- a/module/os/macos/zfs/zfs_osx.cpp +++ b/module/os/macos/zfs/zfs_osx.cpp @@ -282,12 +282,12 @@ org_openzfsonosx_zfs_zvol::stop(IOService *provider) super::stop(provider); - system_taskq_fini(); - zfs_vfsops_fini(); zfs_kmod_fini(); + system_taskq_fini(); + ldi_fini(); sysctl_unregister_oid(&sysctl__zfs_kext_version);