From: Peter Hurley Date: Sun, 8 Nov 2015 12:53:06 +0000 (-0500) Subject: tty: Fix direct use of tty buffer work X-Git-Tag: submit/tizen/20160607.132125~1333^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17a69219713b5063698038151fea9167b5b0c7b4;p=sdk%2Femulator%2Femulator-kernel.git tty: Fix direct use of tty buffer work Recent abstraction of tty buffer work introduced api to manage tty input kworker; use it. Fixes: e176058f0de5 ("tty: Abstract tty buffer work") Signed-off-by: Peter Hurley Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c index 5af8f18..629e3c8 100644 --- a/drivers/tty/tty_ldisc.c +++ b/drivers/tty/tty_ldisc.c @@ -592,7 +592,7 @@ int tty_set_ldisc(struct tty_struct *tty, int ldisc) /* Restart the work queue in case no characters kick it off. Safe if already running */ - schedule_work(&tty->port->buf.work); + tty_buffer_restart_work(tty->port); tty_unlock(tty); return retval;