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

(cherry picked from commit e5018628e76a27e0f61ca03e2aa2247b3c62a158)

Details

Provenance
mavAuthored on Aug 8 2021, 10:19 PM
Parents
rG4c6246b76ed9: tail: Add regression tests for -f and -F
Branches
Unknown
Tags
Unknown