From: Karthik Manamcheri Date: Wed, 23 Jan 2013 22:36:18 +0000 (-0600) Subject: n_tty: Unthrottle tty when flushing read buffer X-Git-Tag: next-20130218~28^2~46 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-linux.git;a=commitdiff_plain;h=58f82be334ede87aa6ff6fa1afdb05552be907be 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 Signed-off-by: Greg Kroah-Hartman --- 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); } /**