]> git.baikalelectronics.ru Git - kernel.git/commit
tty: drop the pty lock during hangup
authorAlan Cox <alan@linux.intel.com>
Wed, 9 May 2012 16:03:19 +0000 (17:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 May 2012 21:40:27 +0000 (14:40 -0700)
commit91e3c4690c42e5124a16df7541dc54d1aa4d2122
treee1f46c9c1856c654bd52d9a32d19574754f16e76
parent7c1a58259a7e3c0ec44e65dc0c04f0003fbee183
tty: drop the pty lock during hangup

In theory we don't need it, in practice we are hitting some ill understood
deadlock when we don't drop it. The old code dropped it here so we are not
undoing anything problematic for pty. If pty could be unloaded it would be
a problem but it can't.

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