diff options
author | Arnd Bergmann <[email protected]> | 2010-06-18 14:58:07 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2010-08-10 13:47:44 -0700 |
commit | 11dbf203922dc70a340417c895c95fb96f6b7068 (patch) | |
tree | 7c79b79c74a184a7d67d3f54af4e37dee930d11e /net/unix/af_unix.c | |
parent | a0821df6e57c8af0053963d0d08c8d5198ea077d (diff) |
tty: avoid recursive BTM in pty_close
When the console has been redirected, a hangup of the tty
will cause tty_release to be called under the big tty_mutex,
which leads to a deadlock because hangup is also called
under the BTM.
This moves the BTM deeper into the tty_hangup function so
we can close the redirected tty without holding the BTM.
In case of pty, we now need to drop the BTM before
calling tty_vhangup.
Signed-off-by: Arnd Bergmann <[email protected]>
Acked-by: Alan Cox <[email protected]>
Cc: Tony Luck <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: John Kacur <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions