HomeFreeBSD

linux: fix ioctl performance for termios

Description

linux: fix ioctl performance for termios

TCGETS et al are frequently issued by Linux binaries while the previous code
avoidably ping-pongs a global sx lock and serializes on Giant.

Note that even with the fix the common case will serialize on a per-tty lock.

Details

Provenance
mjgAuthored on
Parents
rS362921: Add char and short types to kcsan
Branches
Unknown
Tags
Unknown