HomeFreeBSD

linuxkpi: remove global atomic counter of the task allocations

Description

linuxkpi: remove global atomic counter of the task allocations

Use thread_reap_barrier() to ensure that no threads are kept in the
zombies list which could have the linuxkpi task allocated.

Also fix order of initialization and teardown for current task
allocation hooks and resources. Register current task allocator after
zones are initialized. Deregister allocator before cycling over threads
and zeroing task pointer.

Reviewed by: hselasky, markj
Sponsored by: Mellanox Technologies/NVidia Networking
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D30468

Details

Provenance
kibAuthored on May 20 2021, 3:28 PM
Reviewer
hselasky
Differential Revision
D30468: thread_reap_barrier()
Parents
rG4eaf9609fe42: nullfs: provide custom null_rename bypass
Branches
Unknown
Tags
Unknown