tty: Convert termios_mutex to termios_rwsem
authorPeter Hurley <peter@hurleysoftware.com>
Sat, 15 Jun 2013 13:14:23 +0000 (09:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2013 23:43:01 +0000 (16:43 -0700)
commit6a1c0680cf3ba94356ecd58833e1540c93472a57
treed370b0888214bb59049181ac98c567d153263f48
parenta2f73be8ee36e48f11f89ab705beb3c587a2f320
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>
drivers/net/irda/irtty-sir.c
drivers/tty/n_tty.c
drivers/tty/pty.c
drivers/tty/tty_io.c
drivers/tty/tty_ioctl.c
drivers/tty/tty_ldisc.c
drivers/tty/vt/vt.c
include/linux/tty.h