Skip to contentSkip to conversation

tty: Fix direct use of tty buffer work

PATCH New Peter Hurley 1 participant 1 message Nov 8, 2015 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 drivers/tty/tty_ldisc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/tty_ldisc.c +1 -1
index 5af8f18..629e3c8 100644
@@ -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;
Signature · 1 line
2.6.3