]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8b3a2dab1ee9e94b9c745f429c37941cc35a57e6
tree0d69b4db079286579460737708fbe732f032a24b
parent1619405a53596d376c6fa118fff765a90c7cbac2
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