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/zfs/arc.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/zfs/arc.c')
-rw-r--r-- | module/zfs/arc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 5825d3300..b855c1c71 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -3479,7 +3479,7 @@ arc_prune_async(int64_t adjust) refcount_add(&ap->p_refcnt, ap->p_pfunc); ap->p_adjust = adjust; if (taskq_dispatch(arc_prune_taskq, arc_prune_task, - ap, TQ_SLEEP) == 0) { + ap, TQ_SLEEP) == TASKQID_INVALID) { refcount_remove(&ap->p_refcnt, ap->p_pfunc); continue; } |