HomeFreeBSD

kbdmux(4): Make callout handler mpsafe.

Description

kbdmux(4): Make callout handler mpsafe.

Both callout and taskqueue now have drain() routines not requiring
external locking. It allows to remove TASK flag and manual drain,
so the only thing remaining for lock to protect inside the callout
handler is ks_inq_length zero comparison, that can be lockless.

MFC after: 2 weeks

Details

Provenance
mavAuthored on Aug 8 2021, 10:19 PM
Parents
rG66b8eced9723: dtrace: use %zu format specifier for data of size_t type
Branches
Unknown
Tags
Unknown