提交 17a69219 编写于 作者: P Peter Hurley 提交者: Greg Kroah-Hartman

tty: Fix direct use of tty buffer work

Recent abstraction of tty buffer work introduced api to manage
tty input kworker; use it.

Fixes: e176058f ("tty: Abstract tty buffer work")
Signed-off-by: NPeter Hurley <peter@hurleysoftware.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 ee0c1a65
...@@ -592,7 +592,7 @@ int tty_set_ldisc(struct tty_struct *tty, int ldisc) ...@@ -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 /* Restart the work queue in case no characters kick it off. Safe if
already running */ already running */
schedule_work(&tty->port->buf.work); tty_buffer_restart_work(tty->port);
tty_unlock(tty); tty_unlock(tty);
return retval; return retval;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册