mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-13 19:50:25 +03:00
module: icp: remove unused pd_{remove_cv,hash_limit}
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12901
This commit is contained in:
parent
de0ec5e7df
commit
e013057492
@ -214,7 +214,6 @@ kcf_alloc_provider_desc(void)
|
|||||||
desc->pd_state = KCF_PROV_ALLOCATED;
|
desc->pd_state = KCF_PROV_ALLOCATED;
|
||||||
|
|
||||||
mutex_init(&desc->pd_lock, NULL, MUTEX_DEFAULT, NULL);
|
mutex_init(&desc->pd_lock, NULL, MUTEX_DEFAULT, NULL);
|
||||||
cv_init(&desc->pd_resume_cv, NULL, CV_DEFAULT, NULL);
|
|
||||||
cv_init(&desc->pd_remove_cv, NULL, CV_DEFAULT, NULL);
|
cv_init(&desc->pd_remove_cv, NULL, CV_DEFAULT, NULL);
|
||||||
|
|
||||||
return (desc);
|
return (desc);
|
||||||
@ -264,7 +263,6 @@ kcf_free_provider_desc(kcf_provider_desc_t *desc)
|
|||||||
/* free the kernel memory associated with the provider descriptor */
|
/* free the kernel memory associated with the provider descriptor */
|
||||||
|
|
||||||
mutex_destroy(&desc->pd_lock);
|
mutex_destroy(&desc->pd_lock);
|
||||||
cv_destroy(&desc->pd_resume_cv);
|
|
||||||
cv_destroy(&desc->pd_remove_cv);
|
cv_destroy(&desc->pd_remove_cv);
|
||||||
|
|
||||||
kmem_free(desc, sizeof (kcf_provider_desc_t));
|
kmem_free(desc, sizeof (kcf_provider_desc_t));
|
||||||
|
@ -81,8 +81,6 @@ typedef struct kcf_sched_info {
|
|||||||
* acquire any locks here as it is not critical to get the exact number
|
* acquire any locks here as it is not critical to get the exact number
|
||||||
* and the lock contention may be too costly for this code path.
|
* and the lock contention may be too costly for this code path.
|
||||||
*/
|
*/
|
||||||
#define KCF_PROV_LOAD(pd) ((pd)->pd_irefcnt)
|
|
||||||
|
|
||||||
#define KCF_PROV_INCRSTATS(pd, error) { \
|
#define KCF_PROV_INCRSTATS(pd, error) { \
|
||||||
(pd)->pd_sched_info.ks_ndispatches++; \
|
(pd)->pd_sched_info.ks_ndispatches++; \
|
||||||
if (error == CRYPTO_BUSY) \
|
if (error == CRYPTO_BUSY) \
|
||||||
@ -154,8 +152,6 @@ typedef enum {
|
|||||||
* by the provider during registration
|
* by the provider during registration
|
||||||
* pd_remove_cv: cv to wait on while the provider queue drains
|
* pd_remove_cv: cv to wait on while the provider queue drains
|
||||||
* pd_description: Provider description string
|
* pd_description: Provider description string
|
||||||
* pd_hash_limit Maximum data size that hash mechanisms of this provider
|
|
||||||
* can support.
|
|
||||||
* pd_kcf_prov_handle: KCF-private handle assigned by KCF
|
* pd_kcf_prov_handle: KCF-private handle assigned by KCF
|
||||||
* pd_prov_id: Identification # assigned by KCF to provider
|
* pd_prov_id: Identification # assigned by KCF to provider
|
||||||
* pd_kstat: kstat associated with the provider
|
* pd_kstat: kstat associated with the provider
|
||||||
@ -166,7 +162,6 @@ typedef struct kcf_provider_desc {
|
|||||||
uint_t pd_irefcnt;
|
uint_t pd_irefcnt;
|
||||||
kmutex_t pd_lock;
|
kmutex_t pd_lock;
|
||||||
kcf_prov_state_t pd_state;
|
kcf_prov_state_t pd_state;
|
||||||
kcondvar_t pd_resume_cv;
|
|
||||||
const crypto_ops_t *pd_ops_vector;
|
const crypto_ops_t *pd_ops_vector;
|
||||||
ushort_t pd_mech_indx[KCF_OPS_CLASSSIZE]\
|
ushort_t pd_mech_indx[KCF_OPS_CLASSSIZE]\
|
||||||
[KCF_MAXMECHTAB];
|
[KCF_MAXMECHTAB];
|
||||||
@ -175,7 +170,6 @@ typedef struct kcf_provider_desc {
|
|||||||
uint_t pd_mech_list_count;
|
uint_t pd_mech_list_count;
|
||||||
kcondvar_t pd_remove_cv;
|
kcondvar_t pd_remove_cv;
|
||||||
const char *pd_description;
|
const char *pd_description;
|
||||||
uint_t pd_hash_limit;
|
|
||||||
crypto_kcf_provider_handle_t pd_kcf_prov_handle;
|
crypto_kcf_provider_handle_t pd_kcf_prov_handle;
|
||||||
crypto_provider_id_t pd_prov_id;
|
crypto_provider_id_t pd_prov_id;
|
||||||
kstat_t *pd_kstat;
|
kstat_t *pd_kstat;
|
||||||
|
Loading…
Reference in New Issue
Block a user