Skip to content
Snippets Groups Projects
Commit 514fc01d authored by Linus Torvalds's avatar Linus Torvalds
Browse files

tty: use the new 'flush_delayed_work()' helper to do ldisc flush


This way all flush_to_ldisc work is always done through the workqueues,
and we thus have a single point of serialization.

Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 43046b60
No related merge requests found
...@@ -468,7 +468,7 @@ static void flush_to_ldisc(struct work_struct *work) ...@@ -468,7 +468,7 @@ static void flush_to_ldisc(struct work_struct *work)
*/ */
void tty_flush_to_ldisc(struct tty_struct *tty) void tty_flush_to_ldisc(struct tty_struct *tty)
{ {
flush_to_ldisc(&tty->buf.work.work); flush_delayed_work(&tty->buf.work);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment