]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/tty/pty.c
tty: Preset lock subclass for nested tty locks
authorPeter Hurley <peter@hurleysoftware.com>
Wed, 5 Nov 2014 17:13:02 +0000 (12:13 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 02:50:42 +0000 (18:50 -0800)
commit2febdb632bb96235b94b8fccaf882a78f8f4b2bb
treef4740b43b225a863f05df7edb59d3b3badfdb445
parent2aff5e2bc62db43e05c814461a08aff0fc2b7fe5
tty: Preset lock subclass for nested tty locks

Eliminate the requirement of specifying the tty lock nesting at
lock time; instead, set the lock subclass for slave ptys at pty
install (normal ttys and master ptys use subclass 0).

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