aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/zfs_chksum.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/zfs/zfs_chksum.c')
-rw-r--r--module/zfs/zfs_chksum.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/module/zfs/zfs_chksum.c b/module/zfs/zfs_chksum.c
index 3ebe08541..639784287 100644
--- a/module/zfs/zfs_chksum.c
+++ b/module/zfs/zfs_chksum.c
@@ -277,6 +277,9 @@ chksum_benchmark(void)
void
chksum_init(void)
{
+#ifdef _KERNEL
+ blake3_per_cpu_ctx_init();
+#endif
/* Benchmark supported implementations */
chksum_benchmark();
@@ -313,4 +316,8 @@ chksum_fini(void)
chksum_stat_cnt = 0;
chksum_stat_data = 0;
}
+
+#ifdef _KERNEL
+ blake3_per_cpu_ctx_fini();
+#endif
}