[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5113CA5A.8070307@suse.cz>
Date: Thu, 07 Feb 2013 16:38:02 +0100
From: Jiri Slaby <jslaby@...e.cz>
To: Peter Hurley <peter@...leysoftware.com>
CC: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Alan Cox <alan@...ux.intel.com>,
Sasha Levin <levinsasha928@...il.com>,
Sebastian Andrzej Siewior <bigeasy@...utronix.de>,
linux-serial@...r.kernel.org, linux-kernel@...r.kernel.org,
Ilya Zykov <ilya@...x.ru>, Dave Jones <davej@...hat.com>
Subject: Re: [PATCH v3 07/23] tty: Strengthen no-subsequent-use guarantee
of tty_ldisc_halt()
On 02/05/2013 09:20 PM, Peter Hurley wrote:
> @@ -688,9 +702,9 @@ int tty_set_ldisc(struct tty_struct *tty, int ldisc)
> * parallel to the change and re-referencing the tty.
> */
>
> - work = tty_ldisc_halt(tty);
> + retval = tty_ldisc_halt(tty, &work, 5 * HZ);
> if (o_tty)
> - o_work = tty_ldisc_halt(o_tty);
> + tty_ldisc_halt(o_tty, &o_work, 0);
Zero in there will cause the other end's work not to be cancelled and
TTY_LDISC_HALTED unset if there are two or more readers on the slave,
right? So there should be something like:
if (timeout)
retval = tty_ldisc_wait_idle(tty, timeout);
...
in tty_ldisc_halt.
--
js
suse labs
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists