Messages in this thread Patch in this message | | | From | Peter Hurley <> | Subject | [PATCH -next 8/9] tty: Remove unnecessary buffer work flush | Date | Tue, 4 Dec 2012 02:07:44 -0500 |
| |
In order to safely call tty_ldisc_flush_works(), the ldisc must already have been halted, so any pending buffer work has already been cancelled or flushed as part of the halt.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com> --- drivers/tty/tty_ldisc.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c index 9f4c7b0..19e088a 100644 --- a/drivers/tty/tty_ldisc.c +++ b/drivers/tty/tty_ldisc.c @@ -506,7 +506,6 @@ static void tty_ldisc_flush_works(struct tty_struct *tty) { flush_work(&tty->hangup_work); flush_work(&tty->SAK_work); - flush_work(&tty->port->buf.work); } /** -- 1.8.0
| |