mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
module: icp: rip out insane crypto_req_handle_t mechanism, inline KM_SLEEP
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12901
This commit is contained in:
@@ -37,19 +37,17 @@
|
||||
|
||||
/* kmem caches used by the scheduler */
|
||||
static kmem_cache_t *kcf_context_cache;
|
||||
ulong_t kcf_swprov_hndl = 0;
|
||||
|
||||
/*
|
||||
* Create a new context.
|
||||
*/
|
||||
crypto_ctx_t *
|
||||
kcf_new_ctx(crypto_call_req_t *crq, kcf_provider_desc_t *pd)
|
||||
kcf_new_ctx(kcf_provider_desc_t *pd)
|
||||
{
|
||||
crypto_ctx_t *ctx;
|
||||
kcf_context_t *kcf_ctx;
|
||||
|
||||
kcf_ctx = kmem_cache_alloc(kcf_context_cache,
|
||||
(crq == NULL) ? KM_SLEEP : KM_NOSLEEP);
|
||||
kcf_ctx = kmem_cache_alloc(kcf_context_cache, KM_SLEEP);
|
||||
if (kcf_ctx == NULL)
|
||||
return (NULL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user