]> git.baikalelectronics.ru Git - kernel.git/commit
tty_lock: undo the old tty_lock use on the ctty
authorAlan Cox <alan@linux.intel.com>
Thu, 3 May 2012 21:21:53 +0000 (22:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 May 2012 23:47:38 +0000 (16:47 -0700)
commit8e896979a32de5fe4dd0f1f81926befbcc4382ca
tree8d2f1a77e25354c69d61192e544bedb681cbb80e
parent7c34afb62d039d67e60c805f3fd96514d41bf41e
tty_lock: undo the old tty_lock use on the ctty

get_current_tty has its own consistent locking. That means a pile of the
tty lock cases are not needed. As get_current_tty also keeps a reference the
tty object lifetime means we can propogate the lock removal out.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_io.c