Skip to content

Commit f95499c

Browse files
peterhurleygregkh
authored andcommitted
n_tty: Don't wait for buffer work in read() loop
User-space read() can run concurrently with receiving from device; waiting for receive_buf() to complete is not required. Signed-off-by: Peter Hurley <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d1913e3 commit f95499c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/tty/n_tty.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1724,7 +1724,6 @@ static inline int input_available_p(struct tty_struct *tty, int amt)
17241724
{
17251725
struct n_tty_data *ldata = tty->disc_data;
17261726

1727-
tty_flush_to_ldisc(tty);
17281727
if (ldata->icanon && !L_EXTPROC(tty)) {
17291728
if (ldata->canon_head != ldata->read_tail)
17301729
return 1;

0 commit comments

Comments
 (0)