tty: Make lock subclasses available for other tty locks
authorPeter Hurley <peter@hurleysoftware.com>
Sat, 17 Jan 2015 20:42:04 +0000 (15:42 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Feb 2015 18:11:27 +0000 (10:11 -0800)
commit3abf87cd3e70009ed70a7f28c2914888a7e27332
treec1c57a8caab29cd953b7373c5a19d0a4f0494a14
parentfb5ef9e7da39968fec6d6f37f20a23d23740c75e
tty: Make lock subclasses available for other tty locks

Besides nested legacy_mutex locking which is required on pty pair
teardown, other nested pty operations require lock subclassing.

Move lock subclass definition to tty interface header, include/linux/tty.h,
and document its use.

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