diff options
author | Karthik Manamcheri <Karthik.Manamcheri@ni.com> | 2013-01-23 16:36:18 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-25 08:52:23 -0800 |
commit | 58f82be334ede87aa6ff6fa1afdb05552be907be (patch) | |
tree | bd7600f66c7ef0af87ac7ef260447976f5defd1f /drivers | |
parent | ebcf09816c68d1082aec5a2646e9f20715384502 (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')
-rw-r--r-- | drivers/tty/n_tty.c | 2 |
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); } /** |