Re: [PATCH] tty: fix ldisc flush and termios setting race

2013-03-01 Thread Peter Hurley
On Fri, 2013-02-22 at 19:00 -0800, Min Zhang wrote: > From: Min Zhang > > A race condition can clear tty ldisc icanon bit unintentionally which > could stop n_tty from processing received characters. It can occur when > tty receiver buffer was full, e.g. 4096 chars received, 8250 serial driver >

[PATCH] tty: fix ldisc flush and termios setting race

2013-02-22 Thread Min Zhang
From: Min Zhang A race condition can clear tty ldisc icanon bit unintentionally which could stop n_tty from processing received characters. It can occur when tty receiver buffer was full, e.g. 4096 chars received, 8250 serial driver interrupt tried to flush_to_ldisc them, but other shell thread