Re: [PATCH 5/5] TTY: fix tty_wait_until_sent maximum timeout

2015-03-05 Thread Peter Hurley
On 03/04/2015 04:39 AM, Johan Hovold wrote: > Currently tty_wait_until_sent may take up to twice as long as the > requested timeout while waiting for driver and hardware buffers to > drain. > > Fix this by taking the remaining number of jiffies after waiting for > driver buffers to drain into acco

[PATCH 5/5] TTY: fix tty_wait_until_sent maximum timeout

2015-03-04 Thread Johan Hovold
Currently tty_wait_until_sent may take up to twice as long as the requested timeout while waiting for driver and hardware buffers to drain. Fix this by taking the remaining number of jiffies after waiting for driver buffers to drain into account so that the timeout actually becomes a maximum timeo