summaryrefslogtreecommitdiff
path: root/drivers/tty/n_tty.c
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2015-10-17 23:36:23 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-18 07:32:21 +0300
commite176058f0de53c2346734e5254835e0045364001 (patch)
treeb5a4e03beb2a24c03ca5023599f045cc5375828a /drivers/tty/n_tty.c
parent4b41b9539a1e9531f942ededfcdcff372317d2e7 (diff)
downloadlinux-e176058f0de53c2346734e5254835e0045364001.tar.xz
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>
Diffstat (limited to 'drivers/tty/n_tty.c')
-rw-r--r--drivers/tty/n_tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c
index fb8ccbfdbb30..13844261cd5f 100644
--- a/drivers/tty/n_tty.c
+++ b/drivers/tty/n_tty.c
@@ -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);
}
}