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.

Reported by: YAMAMOTO Shigeru <shigeru@os-hackers.jp>
Reviewed by: mav
Differential Revision: https://reviews.freebsd.org/D26759

Details

Provenance
mjgAuthored on
Reviewer
mav
Differential Revision
D26759: zfs: fix panic due to tqid overflow
Parents
rS366684: Remove --ld-path=* from _LDFLAGS
Branches
Unknown
Tags
Unknown