OSDN Git Service

TTY: use tty_wait_until_sent_from_close in tty_port_close_start
authorJiri Slaby <jslaby@suse.cz>
Thu, 25 Aug 2011 13:12:07 +0000 (15:12 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 25 Aug 2011 16:00:41 +0000 (09:00 -0700)
commit424cc0391222695225632a3f2ccb0aed3e57b2e5
treebe94826b93afa195f81b9f92fc2550b4a48fe4d0
parenta57a7bf3fc7eff00f07eb9c805774d911a3f2472
TTY: use tty_wait_until_sent_from_close in tty_port_close_start

Let's use the newly added helper to avoid stalls in drivers which are
already ported to tty_port helpers.

We have to ensure here, that there is no user of tty_port_close_start
and tty_port_close which holds port->mutex (or other) lock over them.
And sure, there is none.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/tty_port.c