tty: Add lock/unlock ldisc pair functions
authorPeter Hurley <peter@hurleysoftware.com>
Sat, 15 Jun 2013 11:04:47 +0000 (07:04 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2013 23:38:34 +0000 (16:38 -0700)
commitd2c438905f9f718b3d9f5d89ce163fc22bd33995
tree60ff9ab6543fe72fb1225e660a53dc2f147faecb
parent137084bbaddf4f6dde948ef3a14e18ba0754cc0d
tty: Add lock/unlock ldisc pair functions

Just as the tty pair must be locked in a stable sequence
(ie, independent of which is consider the 'other' tty), so must
the ldisc pair be locked in a stable sequence as well.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_ldisc.c