]> www.infradead.org Git - users/jedix/linux-maple.git/commit
TTY: ldisc, allow waiting for ldisc arbitrarily long
authorJiri Slaby <jslaby@suse.cz>
Wed, 16 Nov 2011 15:27:07 +0000 (16:27 +0100)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:19:16 +0000 (11:19 -0800)
commitc0a7a00db290bb260f2520a6a7586282b7573427
tree3137b15ba89dd4b04f6d2da4e1d51c5f49b14a9b
parenta560ec6037df4b6579d0c7ca3a8f501ff5ecd25f
TTY: ldisc, allow waiting for ldisc arbitrarily long

commit df92d0561de364de53c42abc5d43e04ab6f326a5 upstream.

To fix a nasty bug in ldisc hup vs. reinit we need to wait infinitely
long for ldisc to be gone. So here we add a parameter to
tty_ldisc_wait_idle to allow that.

This is only a preparation for the real fix which is done in the
following patches.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Dave Young <hidave.darkstar@gmail.com>
Cc: Dave Jones <davej@redhat.com>
Cc: Ben Hutchings <ben@decadent.org.uk>
Cc: Dmitriy Matrosov <sgf.dma@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/tty_ldisc.c