HomeFreeBSD

spl-taskq: fix task counts for delayed and cancelled tasks

Description

spl-taskq: fix task counts for delayed and cancelled tasks

Dispatched delayed tasks were not added to tasks_total, and cancelled
tasks were not removed. This notably could make tasks_total go to
UNIT64_MAX, but just generally meant the count could be wrong. So lets
not!

Sponsored-by: Klara, Inc.
Sponsored-by: Syneto
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16473

Details

Provenance
rob.norris_klarasystems.comAuthored on Aug 23 2024, 5:40 PM
GitHub <noreply@github.com>Committed on Aug 23 2024, 5:40 PM
Parents
rG34118eac06fb: Make mount.zfs(8) calling zfs_mount_at for legacy mounts as well
Branches
Unknown
Tags
Unknown