tty: Don't hold tty_lock for ldisc release
authorPeter Hurley <peter@hurleysoftware.com>
Wed, 5 Nov 2014 17:12:44 +0000 (12:12 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 02:24:10 +0000 (18:24 -0800)
commit3ee175d9d9f9be0e345f7237ee921e58f68afdd7
treee8434c32bdb6a6321e8e6a9b3890927f7e2e791f
parent1bc8cde46a159c928f62ac48981cf230582e4b78
tty: Don't hold tty_lock for ldisc release

The tty->ldisc_sem write lock is sufficient for serializing changes
to tty->ldisc; holding the tty lock is not required.

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_ldisc.c