diff options
author | наб <[email protected]> | 2021-12-25 04:34:29 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-02-15 16:25:37 -0800 |
commit | df7b54f1d983ca41e7b2add09664b1da128f3424 (patch) | |
tree | 867a3ba405a08eb81c848408b8fe11b3444576fb /module/icp/core | |
parent | 15ec0863963a12f698e0318d6cac76c48b9770d5 (diff) |
module: icp: rip out insane crypto_req_handle_t mechanism, inline KM_SLEEP
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #12901
Diffstat (limited to 'module/icp/core')
-rw-r--r-- | module/icp/core/kcf_sched.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/module/icp/core/kcf_sched.c b/module/icp/core/kcf_sched.c index d074bab85..4c689c20f 100644 --- a/module/icp/core/kcf_sched.c +++ b/module/icp/core/kcf_sched.c @@ -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); |