diff options
author | Ubuntu <[email protected]> | 2016-10-28 21:23:30 +0000 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-11-02 10:34:19 -0700 |
commit | cbba7146676dd145f373bcbe4f4f435d9100ddbb (patch) | |
tree | 18c5dc6f88302280af42323eedcb47797f9a3fc3 /include | |
parent | 1b457bcbe502eb29333a34b0518c1dca0e2ee974 (diff) |
Add TASKQID_INVALID and TASKQID_INITIAL macros
Add the TASKQID_INVALID and TASKQID_INITIAL macros and update the
taskq implementation and test cases to use them. This is solely
for the purposes of readability and introduces no functional change.
Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/taskq.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sys/taskq.h b/include/sys/taskq.h index 19bc6c1dd..1eecda4d2 100644 --- a/include/sys/taskq.h +++ b/include/sys/taskq.h @@ -57,6 +57,12 @@ #define TQ_FRONT 0x08000000 /* + * Reserved taskqid values. + */ +#define TASKQID_INVALID ((taskqid_t)0) +#define TASKQID_INITIAL ((taskqid_t)1) + +/* * spin_lock(lock) and spin_lock_nested(lock,0) are equivalent, * so TQ_LOCK_DYNAMIC must not evaluate to 0 */ |