Skip to content

Commit

Permalink
n_tty: Unthrottle tty when flushing read buffer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Karthik Manamcheri authored and Greg Kroah-Hartman committed Jan 25, 2013
1 parent ebcf098 commit 58f82be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/tty/n_tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 58f82be

Please sign in to comment.