tty: Redo current tty locking
authorAlan Cox <alan@redhat.com>
Mon, 13 Oct 2008 09:40:43 +0000 (10:40 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 13 Oct 2008 16:51:41 +0000 (09:51 -0700)
commit934e6ebf96e8c1a0f299e64129fdaebc1132a427
treeab4bd754997b097f06a5cfefd9e3671d56e628f4
parent2cb5998b5f0ccc886fdda3509059eef297b49577
tty: Redo current tty locking

Currently it is sometimes locked by the tty mutex and sometimes by the
sighand lock. The latter is in fact correct and now we can hand back referenced
objects we can fix this up without problems around sleeping functions.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/tty_io.c
drivers/s390/char/fs3270.c
fs/dquot.c
security/selinux/hooks.c