]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Properly set the low watermarks when reducing the baud rate.
authorEd Schouten <ed@FreeBSD.org>
Mon, 19 Oct 2009 07:17:37 +0000 (07:17 +0000)
committerEd Schouten <ed@FreeBSD.org>
Mon, 19 Oct 2009 07:17:37 +0000 (07:17 +0000)
commit6015f6f35ab809eb00b4a97332d433a7caabf2b4
treee5b553b26bb78eec8b8bd6b72dd2d03c7da28716
parent23b5fd2285b5e3fb24a0177b3ddbf849b6fcee6d
Properly set the low watermarks when reducing the baud rate.

Now that buffers are deallocated lazily, we should not use
tty*q_getsize() to obtain the buffer size to calculate the low
watermarks. Doing this may cause the watermark to be placed outside the
typical buffer size.

This caused some regressions after my previous commit to the TTY code,
which allows pseudo-devices to resize the buffers as well.

Reported by: yongari, dougb
MFC after: 1 week
sys/kern/tty.c
sys/sys/ttyqueue.h