tty: Don't take tty_mutex for tty count changes
authorPeter Hurley <peter@hurleysoftware.com>
Wed, 5 Nov 2014 17:12:53 +0000 (12:12 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 02:30:43 +0000 (18:30 -0800)
commit0911261d4cb614ef6900cd2906be2c61a87f43ff
tree0d69b4db079286579460737708fbe732f032a24b
parent04980706c8febe41ec598116b174bd3a2dc82355
tty: Don't take tty_mutex for tty count changes

Holding tty_mutex is no longer required to serialize changes to
the tty_count or to prevent concurrent opens of closing ttys;
tty_lock() is sufficient.

Reviewed-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_io.c