aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/n_tty.c
diff options
context:
space:
mode:
authorKarthik Manamcheri <Karthik.Manamcheri@ni.com>2013-01-23 17:36:18 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-25 11:52:23 -0500
commit58f82be334ede87aa6ff6fa1afdb05552be907be (patch)
treebd7600f66c7ef0af87ac7ef260447976f5defd1f /drivers/tty/n_tty.c
parentebcf09816c68d1082aec5a2646e9f20715384502 (diff)
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/n_tty.c')
-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)
229 ldata->canon_head = ldata->canon_data = ldata->erasing = 0; 229 ldata->canon_head = ldata->canon_data = ldata->erasing = 0;
230 bitmap_zero(ldata->read_flags, N_TTY_BUF_SIZE); 230 bitmap_zero(ldata->read_flags, N_TTY_BUF_SIZE);
231 n_tty_set_room(tty); 231 n_tty_set_room(tty);
232
233 check_unthrottle(tty);
232} 234}
233 235
234/** 236/**