HomeFreeBSD

Fix memory allocation issue for BLAKE3 context

Description

Fix memory allocation issue for BLAKE3 context

The kmem_alloc(sizeof (*ctx), KM_NOSLEEP) call on FreeBSD can't be
used in this code segment. Work around this by pre-allocating a percpu
context array for later use.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de>
Closes #13568

Details

Provenance
Tino Reichardt <milky-zfs@mcmilk.de>Authored on Jun 21 2022, 9:32 PM
GitHub <noreply@github.com>Committed on Jun 21 2022, 9:32 PM
Parents
rGb17663f571bf: Remove install of zfs-load-module.service for dracut
Branches
Unknown
Tags
Unknown