]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linux: fix ioctl performance for termios
authormjg <mjg@FreeBSD.org>
Sat, 4 Jul 2020 06:25:41 +0000 (06:25 +0000)
committermjg <mjg@FreeBSD.org>
Sat, 4 Jul 2020 06:25:41 +0000 (06:25 +0000)
commit0c55a7efbc3483a699a2c56512195e1d6b91f223
tree9532f684a54db14c021acfd8c80b14225c1ba4cd
parent9c4412f85117c3fedfea381f3faebb9bbdf7017c
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.
sys/compat/linux/linux_ioctl.c