Skip to content

Commit

Permalink
tty: use the new 'flush_delayed_work()' helper to do ldisc flush
Browse files Browse the repository at this point in the history
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: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Linus Torvalds committed Oct 14, 2009
1 parent 43046b6 commit 514fc01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/tty_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ static void flush_to_ldisc(struct work_struct *work)
*/
void tty_flush_to_ldisc(struct tty_struct *tty)
{
flush_to_ldisc(&tty->buf.work.work);
flush_delayed_work(&tty->buf.work);
}

/**
Expand Down

0 comments on commit 514fc01

Please sign in to comment.