]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Re-implement virtual console (constty).
authorAlexander Motin <mav@FreeBSD.org>
Sat, 4 Sep 2021 02:18:51 +0000 (22:18 -0400)
committerAlexander Motin <mav@FreeBSD.org>
Mon, 4 Oct 2021 01:15:02 +0000 (21:15 -0400)
commitc15b8196ba6f22908d75fdf2fece76e1c20ec80e
tree0c3deca769f269ee6238248f673f8ddab61d3dfc
parentb7fde5e82bd54242d4f8c1801ab6487711e7532b
Re-implement virtual console (constty).

Protect conscallout with tty lock instead of Giant.  In addition to
Giant removal it also closes race on console unset.

Introduce additional lock to protect against concurrent console sets.

Remove consbuf free on console unset as unsafe, making impossible to
change buffer size after first allocation.  Instead increase default
buffer size from 8KB to 64KB and processing rate from 5Hz to 10-15Hz
to make the output more smooth.

MFC after: 1 month

(cherry picked from commit bd6085c6ae28fb1cc81cca325656332fbd2cebd8)
sys/kern/kern_cons.c
sys/kern/tty.c
sys/sys/cons.h