Skip to content

Commit

Permalink
tty: Don't change receive_room for ioctl(TIOCSETD)
Browse files Browse the repository at this point in the history
tty_set_ldisc() is guaranteed exclusive use of the line discipline
by tty_ldisc_lock_pair_timeout(); shutting off input by resetting
receive_room is unnecessary.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Peter Hurley authored and Greg Kroah-Hartman committed Jul 23, 2013
1 parent b0e9585 commit 3b80df7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/tty/tty_ldisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,9 +540,6 @@ int tty_set_ldisc(struct tty_struct *tty, int ldisc)
return 0;
}

/* FIXME: why 'shutoff' input if the ldisc is locked? */
tty->receive_room = 0;

old_ldisc = tty->ldisc;
tty_lock(tty);

Expand Down

0 comments on commit 3b80df7

Please sign in to comment.