summaryrefslogtreecommitdiff
path: root/drivers/tty
diff options
context:
space:
mode:
authorKarthik Manamcheri <Karthik.Manamcheri@ni.com>2013-01-24 02:36:18 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-25 20:52:23 +0400
commit58f82be334ede87aa6ff6fa1afdb05552be907be (patch)
treebd7600f66c7ef0af87ac7ef260447976f5defd1f /drivers/tty
parentebcf09816c68d1082aec5a2646e9f20715384502 (diff)
downloadlinux-58f82be334ede87aa6ff6fa1afdb05552be907be.tar.xz
n_tty: Unthrottle tty when flushing read buffer
When the tty input buffer is full and thereby throttled, flushing/resetting the read buffer should unthrottle to allow more data to be received. Signed-off-by: Karthik Manamcheri <Karthik.Manamcheri@ni.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/n_tty.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c
index 19083efa2314..d5cea3bb01ea 100644
--- a/drivers/tty/n_tty.c
+++ b/drivers/tty/n_tty.c
@@ -229,6 +229,8 @@ static void reset_buffer_flags(struct tty_struct *tty)
ldata->canon_head = ldata->canon_data = ldata->erasing = 0;
bitmap_zero(ldata->read_flags, N_TTY_BUF_SIZE);
n_tty_set_room(tty);
+
+ check_unthrottle(tty);
}
/**