tty: Fix ldisc halt sequence on hangup
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 11 Mar 2013 20:44:26 +0000 (16:44 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2013 23:32:46 +0000 (16:32 -0700)
commit76bc35e78fdf1065ffa2bb62fabe3e8423d378c8
tree1dd96202018593d08f08bf20694dc9c130be1563
parent2276ad9765b395577442d6ddf748f72c329234ae
tty: Fix ldisc halt sequence on hangup

Flip buffer work cannot be cancelled until all outstanding ldisc
references have been released. Convert the ldisc ref wait into
a full ldisc halt with buffer work cancellation.

Note that the legacy mutex is not held while cancelling.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_ldisc.c