mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
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 <behlendorf1@llnl.gov>
This commit is contained in:
@@ -56,6 +56,12 @@
|
||||
#define TQ_NEW 0x04000000
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user