mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
module: icp: remove unused CRYPTO_{NOTIFY_OPDONE,SKIP_REQID,RESTRICTED}
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12901
This commit is contained in:
@@ -78,14 +78,10 @@ is_in_triedlist(kcf_provider_desc_t *pd, kcf_prov_tried_t *triedl)
|
||||
* search to find one. This is fine as we assume there are only a few
|
||||
* number of providers in this list. If this assumption ever changes,
|
||||
* we should revisit this.
|
||||
*
|
||||
* call_restrict represents if the caller should not be allowed to
|
||||
* use restricted providers.
|
||||
*/
|
||||
kcf_provider_desc_t *
|
||||
kcf_get_mech_provider(crypto_mech_type_t mech_type, kcf_mech_entry_t **mepp,
|
||||
int *error, kcf_prov_tried_t *triedl, crypto_func_group_t fg,
|
||||
boolean_t call_restrict)
|
||||
int *error, kcf_prov_tried_t *triedl, crypto_func_group_t fg)
|
||||
{
|
||||
kcf_provider_desc_t *pd = NULL;
|
||||
kcf_prov_mech_desc_t *mdesc;
|
||||
@@ -119,7 +115,7 @@ kcf_get_mech_provider(crypto_mech_type_t mech_type, kcf_mech_entry_t **mepp,
|
||||
if (!IS_FG_SUPPORTED(mdesc, fg) ||
|
||||
!KCF_IS_PROV_USABLE(pd) ||
|
||||
IS_PROVIDER_TRIED(pd, triedl) ||
|
||||
(call_restrict && (pd->pd_flags & KCF_PROV_RESTRICTED)))
|
||||
(pd->pd_flags & KCF_PROV_RESTRICTED))
|
||||
pd = NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -265,8 +265,7 @@ kcf_resubmit_request(kcf_areq_node_t *areq)
|
||||
return (error);
|
||||
|
||||
new_pd = kcf_get_mech_provider(mech1->cm_type, NULL, &error,
|
||||
areq->an_tried_plist, fg,
|
||||
(areq->an_reqarg.cr_flag & CRYPTO_RESTRICTED));
|
||||
areq->an_tried_plist, fg);
|
||||
|
||||
if (new_pd == NULL)
|
||||
return (error);
|
||||
@@ -684,16 +683,13 @@ kcf_aop_done(kcf_areq_node_t *areq, int error)
|
||||
* atomic operations.
|
||||
*/
|
||||
skip_notify = (IS_UPDATE_OP(optype) || IS_INIT_OP(optype)) &&
|
||||
(!(areq->an_reqarg.cr_flag & CRYPTO_NOTIFY_OPDONE)) &&
|
||||
(error == CRYPTO_SUCCESS);
|
||||
|
||||
if (!skip_notify) {
|
||||
NOTIFY_CLIENT(areq, error);
|
||||
}
|
||||
|
||||
if (!(areq->an_reqarg.cr_flag & CRYPTO_SKIP_REQID))
|
||||
kcf_reqid_delete(areq);
|
||||
|
||||
kcf_reqid_delete(areq);
|
||||
KCF_AREQ_REFRELE(areq);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user