Re: TTY_FLIPBUF_SIZE too low causing dataloss on too fast serial lines?

Theodore Y. Ts'o (tytso@mit.edu)
Thu, 27 May 1999 18:51:51 -0400 (EDT)


Date: Thu, 27 May 1999 20:44:51 +0100 (BST)
From: Alan Cox <alan@lxorguk.ukuu.org.uk>

Question: Since tty_flip_buffer_push just shoves the request onto tq_timer,
is it valid to use a private tty_flip_buffer_push that checks if the buffer
is looking close to full and pushes it onto tq_immed then marks that queue
to be run on the irq return (remembering we have no fast irq paths in 2.2
any more)

In fact, couldnt tty_flip_buffer_push do this ?

It could, but the definition of what's considered "close" differs from
UART to UART, depending on how big the FIFO is. It's a good idea,
though. It's worth thinking about, though; it's a good idea.

- Ted

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/