aboutsummaryrefslogtreecommitdiffstats
path: root/module/icp/core/kcf_sched.c
diff options
context:
space:
mode:
authorJorgen Lundman <[email protected]>2022-02-10 07:04:26 +0900
committerGitHub <[email protected]>2022-02-09 15:04:26 -0700
commitc28d6ab08b9ecbd12bd9dffcc788649f1d8161b0 (patch)
tree2df82cad6327d8528dbfd97df09276b76b630796 /module/icp/core/kcf_sched.c
parent4eea717c4f940e029eda6b6fd438b7d5e68880c8 (diff)
Rename EMPTY_TASKQ into taskq_empty
To follow a change in illumos taskq Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Nguyen <[email protected]> Signed-off-by: Jorgen Lundman <[email protected]> Closes #12802
Diffstat (limited to 'module/icp/core/kcf_sched.c')
-rw-r--r--module/icp/core/kcf_sched.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/module/icp/core/kcf_sched.c b/module/icp/core/kcf_sched.c
index 062e96059..ee0fe0ac6 100644
--- a/module/icp/core/kcf_sched.c
+++ b/module/icp/core/kcf_sched.c
@@ -573,15 +573,6 @@ kcf_resubmit_request(kcf_areq_node_t *areq)
return (error);
}
-static inline int EMPTY_TASKQ(taskq_t *tq)
-{
-#ifdef _KERNEL
- return (tq->tq_lowest_id == tq->tq_next_id);
-#else
- return (tq->tq_task.tqent_next == &tq->tq_task || tq->tq_active == 0);
-#endif
-}
-
/*
* Routine called by both ioctl and k-api. The consumer should
* bundle the parameters into a kcf_req_params_t structure. A bunch
@@ -622,7 +613,7 @@ kcf_submit_request(kcf_provider_desc_t *pd, crypto_ctx_t *ctx,
* request allocation and call the SPI directly.
*/
if ((pd->pd_flags & CRYPTO_SYNCHRONOUS) &&
- EMPTY_TASKQ(taskq)) {
+ taskq_empty(taskq)) {
KCF_PROV_IREFHOLD(pd);
if (pd->pd_state == KCF_PROV_READY) {
error = common_submit_request(pd, ctx,
@@ -657,7 +648,7 @@ kcf_submit_request(kcf_provider_desc_t *pd, crypto_ctx_t *ctx,
* case. This is unlike the asynchronous case where we
* must always dispatch to the taskq.
*/
- if (EMPTY_TASKQ(taskq) &&
+ if (taskq_empty(taskq) &&
pd->pd_state == KCF_PROV_READY) {
process_req_hwp(sreq);
} else {