HomeFreeBSD

FreeBSD: fix panic due to tqid overflow

Description

FreeBSD: fix panic due to tqid overflow

The 32-bit counter eventually wraps to 0 which is a sentinel for invalid
id.

Make it 64-bit on LP64 platforms and 0-check otherwise.

Note: Linux counterpart uses id stored per queue instead of a global.
I did not check going that way is feasible with the goal being the
minimal fix doing the job.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Closes #11059

Details

Provenance
mjgAuthored on Oct 14 2020, 3:57 PM
GitHub <noreply@github.com>Committed on Oct 14 2020, 3:57 PM
Parents
rG485b50bb9e67: Cross-platform acltype
Branches
Unknown
Tags
Unknown