Merge 5.10-rc7 into tty-next
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Dec 2020 09:19:31 +0000 (10:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Dec 2020 09:19:31 +0000 (10:19 +0100)
We want the tty fixes in here as well.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1  2 
drivers/tty/tty_io.c
drivers/tty/tty_jobctrl.c
include/linux/tty.h

Simple merge
Simple merge
index 67c7a07c8083ece1613cb26b7dadaa0b029b3b24,eb33d948788cc3ceed5a08ac1963fd05a5eff3f5..0c2f97ba80186a546273abecb411058a4521f2c9
@@@ -303,8 -303,13 +303,12 @@@ struct tty_struct 
        spinlock_t flow_lock;
        /* Termios values are protected by the termios rwsem */
        struct ktermios termios, termios_locked;
 -      struct termiox *termiox;        /* May be NULL for unsupported */
        char name[64];
        struct pid *pgrp;               /* Protected by ctrl lock */
+       /*
+        * Writes protected by both ctrl lock and legacy mutex, readers must use
+        * at least one of them.
+        */
        struct pid *session;
        unsigned long flags;
        int count;