lkml.org 
[lkml]   [2021]   [Jan]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3] tty: resolve loopback wait problem for aging serial port
On Wed, Dec 30, 2020 at 02:57:14PM +0100, Greg Kroah-Hartman wrote:
> On Wed, Dec 30, 2020 at 09:45:29PM +0800, zhangqiumiao1@huawei.com wrote:
> > From: Qiumiao Zhang <zhangqiumiao1@huawei.com>
> >
> > Because serial port is low-speed device, serial port writing will be suspended
> > when the buffer of driver layer is full due to serial port aging.
>
> What do you mean here exactly? What is "serial port aging"?
>
> And since when is a serial port a low-speed device? Compared to what?
>
> > The concrete
> > representation is n_tty_write blocking in the process of wait_woken, the process
> > of writing serial port exists without feedback, and becomes a zombie process.
>
> I do not understand this sentance, sorry. Can you rephrase it?
>
> > So for serial port, set the timeout value of wait_woken function to 60s. Wake up
> > and flush the buffer after timeout.
>
> Where did the 60 second number come from? Why that value and not any
> other specific value?
>
>
> >
> > Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
> > ---
> > v3:
> > add changes from v1 to v2
> >
> > v2:
> > change to use "real name"
> > fix wrong expression in path description
> > remove config option
> > use driver type to judge tty device type

Note that no mails from zhangqiumiao1@huawei.com appears to make it to
the lists so anyone not in CC only sees your replies, Greg.

Qiumiao Zhang, you need to check your mail setup so that you can post to
the lists.

Johan

\
 
 \ /
  Last update: 2021-01-04 10:10    [W:0.064 / U:0.744 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site