mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 03:37:45 +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:
@@ -1118,7 +1118,7 @@ dmu_objset_upgrade(objset_t *os, dmu_objset_upgrade_cb_t cb)
|
||||
os->os_upgrade_id = taskq_dispatch(
|
||||
os->os_spa->spa_upgrade_taskq,
|
||||
dmu_objset_upgrade_task_cb, os, TQ_SLEEP);
|
||||
if (os->os_upgrade_id == 0)
|
||||
if (os->os_upgrade_id == TASKQID_INVALID)
|
||||
os->os_upgrade_status = ENOMEM;
|
||||
}
|
||||
mutex_exit(&os->os_upgrade_lock);
|
||||
|
||||
Reference in New Issue
Block a user