Re: [Bug #14388] keyboard under X with 2.6.31

Linus Torvalds
2009-10-14T15:07:36Z

On Wed, 14 Oct 2009, Alan Cox wrote:
>
> Stop a moment. The code wasn't designed to permit two paralle calls of
> flush_to_ldisc to the same tty. That was always forbidden when that code
> was designed.

No, the code was clearly _designed_ for it - that's the whole and only
point of the

tty->buf.head = NULL;

line.

But it's certainly true that it just never happened before. At least for
the !low_latency case, I'm not so sure about the low_latency=1 case, but I
haven't checked either - it would depend on any higher-level
serialization.

Linus