]> git.karo-electronics.de Git - linux-beck.git/commit
TTY: wake up processes last at hangup
authorJohan Hovold <jhovold@gmail.com>
Thu, 7 Mar 2013 14:55:49 +0000 (15:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2013 23:27:53 +0000 (16:27 -0700)
commit31ca020b57f7c08da187613cf20becd664c467fa
treed9e88ffeba1fd99eb52e2f98d93b5584eb62b2c9
parent8bde9658a0e6a7098dcda1ce6ea6b278029644b4
TTY: wake up processes last at hangup

Move wake up of processes on blocked-open and modem-status wait queues
to after port shutdown at hangup.

This way the woken up processes can use the ASYNC_INITIALIZED flag to
detect port shutdown.

Note that this is the order currently used by serial-core.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_port.c