tty: Abstract tty buffer work

Introduce API functions to restart and cancel tty buffer work, rather
than manipulate buffer work directly.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
这个提交包含在:
Peter Hurley
2015-10-17 16:36:23 -04:00
提交者 Greg Kroah-Hartman
父节点 4b41b9539a
当前提交 e176058f0d
修改 5 个文件,包含 15 行新增3 行删除

查看文件

@@ -201,7 +201,7 @@ static void n_tty_kick_worker(struct tty_struct *tty)
*/
WARN_RATELIMIT(test_bit(TTY_LDISC_HALTED, &tty->flags),
"scheduling buffer work for halted ldisc\n");
queue_work(system_unbound_wq, &tty->port->buf.work);
tty_buffer_restart_work(tty->port);
}
}