mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
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 <tcaputi@datto.com> Reviewed-by: Tim Chase <tim@chase2k.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue #5347
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user