diff options
author | Brian Behlendorf <[email protected]> | 2016-10-28 22:40:14 +0000 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-11-02 12:14:45 -0700 |
commit | 48d3eb40c71e5840e4d9e9af7addcfef7c382511 (patch) | |
tree | f8832b7512bcdb948ab48d9fcfd145a91bac7ca6 /module/icp/core/kcf_sched.c | |
parent | b3c159fee4ab92832e6a735431b8b5f930665fab (diff) |
Add TASKQID_INVALID
Add the TASKQID_INVALID macros and update callers to use the macro
instead of testing against 0. There is no functional change
even though the functions in zfs_ctldir.c incorrectly used -1
instead of 0.
Reviewed-by: Tom Caputi <[email protected]>
Reviewed-by: Tim Chase <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Issue #5347
Diffstat (limited to 'module/icp/core/kcf_sched.c')
-rw-r--r-- | module/icp/core/kcf_sched.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/icp/core/kcf_sched.c b/module/icp/core/kcf_sched.c index 3b4cce4b5..4161bb7e3 100644 --- a/module/icp/core/kcf_sched.c +++ b/module/icp/core/kcf_sched.c @@ -561,7 +561,7 @@ kcf_resubmit_request(kcf_areq_node_t *areq) taskq_t *taskq = new_pd->pd_sched_info.ks_taskq; if (taskq_dispatch(taskq, process_req_hwp, areq, TQ_NOSLEEP) == - (taskqid_t)0) { + TASKQID_INVALID) { error = CRYPTO_HOST_MEMORY; } else { error = CRYPTO_QUEUED; @@ -782,7 +782,7 @@ kcf_submit_request(kcf_provider_desc_t *pd, crypto_ctx_t *ctx, if (taskq_dispatch(taskq, process_req_hwp, areq, TQ_NOSLEEP) == - (taskqid_t)0) { + TASKQID_INVALID) { error = CRYPTO_HOST_MEMORY; if (!(crq->cr_flag & CRYPTO_SKIP_REQID)) kcf_reqid_delete(areq); |