提交 58f82be3 编写于 作者: K Karthik Manamcheri 提交者: Greg Kroah-Hartman

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: NKarthik Manamcheri <Karthik.Manamcheri@ni.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 ebcf0981
......@@ -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);
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册