]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfdbac39454e37b53085bb4f272c15c1417f638c2
treec1c57a8caab29cd953b7373c5a19d0a4f0494a14
parentc38a212c164c062e3840016d7e9eaf68f4ebbe32
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