Re: [PATCH 1/6] n_tty: Always wake up read()/poll() if new input

2015-12-13 Thread Peter Hurley
Hi Johannes, On 12/13/2015 06:49 AM, Johannes Stezenbach wrote: > Hi Peter, > > On Sat, Dec 12, 2015 at 02:16:34PM -0800, Peter Hurley wrote: >> A read() in non-canonical mode when VMIN > 0 and VTIME == 0 does not >> complete until at least VMIN chars have been read (or the user buffer is >> full

Re: [PATCH 1/6] n_tty: Always wake up read()/poll() if new input

2015-12-13 Thread Johannes Stezenbach
Hi Peter, On Sat, Dec 12, 2015 at 02:16:34PM -0800, Peter Hurley wrote: > A read() in non-canonical mode when VMIN > 0 and VTIME == 0 does not > complete until at least VMIN chars have been read (or the user buffer is > full). In this infrequent read mode, n_tty_read() attempts to reduce > wakeups

[PATCH 1/6] n_tty: Always wake up read()/poll() if new input

2015-12-12 Thread Peter Hurley
A read() in non-canonical mode when VMIN > 0 and VTIME == 0 does not complete until at least VMIN chars have been read (or the user buffer is full). In this infrequent read mode, n_tty_read() attempts to reduce wakeups by computing the amount of data still necessary to complete the read (minimum_to