summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2015-11-08 13:53:06 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-11-21 01:19:54 +0100
commit17a69219713b5063698038151fea9167b5b0c7b4 (patch)
tree46f0702d52a444914a95ea2ba7e0ab5d37a938d4
parenttty: Fix tty_send_xchar() lock order inversion (diff)
downloadlinux-17a69219713b5063698038151fea9167b5b0c7b4.tar.xz
linux-17a69219713b5063698038151fea9167b5b0c7b4.zip
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 <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/tty/tty_ldisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c
index 5af8f1874c1a..629e3c865072 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;