projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebcf098
)
n_tty: Unthrottle tty when flushing read buffer
author
Karthik Manamcheri
<Karthik.Manamcheri@ni.com>
Wed, 23 Jan 2013 22:36:18 +0000
(16:36 -0600)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 25 Jan 2013 16:52:23 +0000
(08:52 -0800)
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>
drivers/tty/n_tty.c
patch
|
blob
|
history
diff --git
a/drivers/tty/n_tty.c
b/drivers/tty/n_tty.c
index 19083efa2314660b25e0fb5bc793af6fb7e9af57..d5cea3bb01eaeec61b577de6c58a8000412c0c37 100644
(file)
--- 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);
}
/**