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 /include/sys/zfs_context.h | |
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 'include/sys/zfs_context.h')
-rw-r--r-- | include/sys/zfs_context.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sys/zfs_context.h b/include/sys/zfs_context.h index bc5087551..ed0a97c45 100644 --- a/include/sys/zfs_context.h +++ b/include/sys/zfs_context.h @@ -495,6 +495,8 @@ typedef struct taskq { #define TQ_NOQUEUE 0x02 /* Do not enqueue if can't dispatch */ #define TQ_FRONT 0x08 /* Queue in front */ +#define TASKQID_INVALID ((taskqid_t)0) + extern taskq_t *system_taskq; extern taskq_t *taskq_create(const char *, int, pri_t, int, int, uint_t); |