From: Alan Cox Date: Fri, 2 Jan 2009 13:47:20 +0000 (+0000) Subject: tty: PTYs set TTY_DO_WRITE_WAKEUP when they don't need to X-Git-Tag: v2.6.29-rc1~545^2~27 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0ac6053c4db9369d7b0f9b39c30f4fb04405666b;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/pty.c b/drivers/char/pty.c index b5daaaa9007..112a6ba9a96 100644 --- a/drivers/char/pty.c +++ b/drivers/char/pty.c @@ -5,8 +5,6 @@ * * Added support for a Unix98-style ptmx device. * -- C. Scott Ananian , 14-Jan-1998 - * Added TTY_DO_WRITE_WAKEUP to enable n_tty to send POLL_OUT to - * waiting writers -- Sapan Bhatia * * When reading this code see also fs/devpts. In particular note that the * driver_data field is used by the devpts side as a binding to the devpts @@ -217,7 +215,6 @@ static int pty_open(struct tty_struct *tty, struct file *filp) clear_bit(TTY_OTHER_CLOSED, &tty->link->flags); set_bit(TTY_THROTTLED, &tty->flags); - set_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); retval = 0; out: return retval;