]> git.baikalelectronics.ru Git - kernel.git/commit
tty: Make tty_files_lock per-tty
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 10 Jan 2016 05:35:23 +0000 (21:35 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jan 2016 23:13:28 +0000 (15:13 -0800)
commit656613c63844a39b5f16596aa110512c35a15fbf
tree7868ef29c68bd7265dcf6fe5b2ab4088abeb7842
parentbcc657efde651e5d10ebfaa2a51978d959c645df
tty: Make tty_files_lock per-tty

Access to tty->tty_files list is always per-tty, never for all ttys
simultaneously. Replace global tty_files_lock spinlock with per-tty
->files_lock. Initialize when the ->tty_files list is inited, in
alloc_tty_struct().

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