tty: Convert termios_mutex to termios_rwsem
termios is commonly accessed unsafely (especially by N_TTY) because the existing mutex forces exclusive access. Convert existing usage. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
a2f73be8ee
commit
6a1c0680cf
@@ -1539,7 +1539,7 @@ int is_ignored(int sig)
|
||||
* guaranteed that this function will not be re-entered or in progress
|
||||
* when the ldisc is closed.
|
||||
*
|
||||
* Locking: Caller holds tty->termios_mutex
|
||||
* Locking: Caller holds tty->termios_rwsem
|
||||
*/
|
||||
|
||||
static void n_tty_set_termios(struct tty_struct *tty, struct ktermios *old)
|
||||
|
Reference in New Issue
Block a user