]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
n_tty: Remove superfluous reader wakeup
authorPeter Hurley <peter@hurleysoftware.com>
Tue, 17 Sep 2013 16:53:34 +0000 (12:53 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Sep 2013 00:55:11 +0000 (17:55 -0700)
n_tty's .set_termios method unconditionally performs reader wakeup;
remove extra reader wakeup for canonical mode changes.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c

index c9a9ddd1d0bc2aa5091d7e1678920df2d9292429..41c0c80094a501999c15ab4f378197ee0a79ab45 100644 (file)
@@ -1764,9 +1764,6 @@ static void n_tty_set_termios(struct tty_struct *tty, struct ktermios *old)
                ldata->lnext = 0;
        }
 
-       if (canon_change && !L_ICANON(tty) && read_cnt(ldata))
-               wake_up_interruptible(&tty->read_wait);
-
        ldata->icanon = (L_ICANON(tty) != 0);
 
        if (I_ISTRIP(tty) || I_IUCLC(tty) || I_IGNCR(tty) ||