Commit 0ac6053c4db9369d7b0f9b39c30f4fb04405666b
Committed by
Linus Torvalds
1 parent
ff8cb0fd6f
tty: PTYs set TTY_DO_WRITE_WAKEUP when they don't need to
The write wakeup is done anyway for the poll while DO_WRITE_WAKUP is cleared, set and managed by the ldisc layer and is no business of the pty code. Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 0 additions and 3 deletions Side-by-side Diff
drivers/char/pty.c
... | ... | @@ -5,8 +5,6 @@ |
5 | 5 | * |
6 | 6 | * Added support for a Unix98-style ptmx device. |
7 | 7 | * -- C. Scott Ananian <cananian@alumni.princeton.edu>, 14-Jan-1998 |
8 | - * Added TTY_DO_WRITE_WAKEUP to enable n_tty to send POLL_OUT to | |
9 | - * waiting writers -- Sapan Bhatia <sapan@corewars.org> | |
10 | 8 | * |
11 | 9 | * When reading this code see also fs/devpts. In particular note that the |
12 | 10 | * driver_data field is used by the devpts side as a binding to the devpts |
... | ... | @@ -217,7 +215,6 @@ |
217 | 215 | |
218 | 216 | clear_bit(TTY_OTHER_CLOSED, &tty->link->flags); |
219 | 217 | set_bit(TTY_THROTTLED, &tty->flags); |
220 | - set_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); | |
221 | 218 | retval = 0; |
222 | 219 | out: |
223 | 220 | return retval; |