aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/tty/tty_buffer.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/tty/tty_buffer.c b/drivers/tty/tty_buffer.c
index 91e326ffe7db..8b00f6a34a7d 100644
--- a/drivers/tty/tty_buffer.c
+++ b/drivers/tty/tty_buffer.c
@@ -342,6 +342,8 @@ EXPORT_SYMBOL(tty_insert_flip_string_flags);
342 * Takes any pending buffers and transfers their ownership to the 342 * Takes any pending buffers and transfers their ownership to the
343 * ldisc side of the queue. It then schedules those characters for 343 * ldisc side of the queue. It then schedules those characters for
344 * processing by the line discipline. 344 * processing by the line discipline.
345 * Note that this function can only be used when the low_latency flag
346 * is unset. Otherwise the workqueue won't be flushed.
345 * 347 *
346 * Locking: Takes tty->buf.lock 348 * Locking: Takes tty->buf.lock
347 */ 349 */
@@ -514,7 +516,8 @@ static void flush_to_ldisc(struct work_struct *work)
514 */ 516 */
515void tty_flush_to_ldisc(struct tty_struct *tty) 517void tty_flush_to_ldisc(struct tty_struct *tty)
516{ 518{
517 flush_work(&tty->buf.work); 519 if (!tty->low_latency)
520 flush_work(&tty->buf.work);
518} 521}
519 522
520/** 523/**