TTY: define tty_wait_until_sent_from_close
authorJiri Slaby <jslaby@suse.cz>
Thu, 25 Aug 2011 13:12:06 +0000 (15:12 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 25 Aug 2011 16:00:40 +0000 (09:00 -0700)
commita57a7bf3fc7eff00f07eb9c805774d911a3f2472
treee69628dba2da099c90bdff8bac4644d2f76b3e4b
parentbafb0bd24d7e0e0124318625b239a55d58c757a2
TTY: define tty_wait_until_sent_from_close

We need this helper to fix system stalls. The issue is that the rest
of the system TTYs wait for us to finish waiting. This wasn't an issue
with BKL. BKL used to unlock implicitly.

This is based on the Arnd suggestion.

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