OSDN Git Service

tty: Wait interruptibly for tty lock on reopen
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 10 Jan 2016 05:13:44 +0000 (21:13 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jan 2016 07:17:54 +0000 (23:17 -0800)
commit0bfd464d3fdd5bb322f9cace4cc47f1796545cf7
tree39464f856fd4dc6b58c31e2cfbbbb882ce3b7ec1
parent92e963f50fc74041b5e9e744c330dca48e04f08d
tty: Wait interruptibly for tty lock on reopen

Allow a signal to interrupt the wait for a tty reopen; eg., if
the tty has starting final close and is waiting for the device to
drain.

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