Skip to content

Commit

Permalink
Merge the right tty-fixes branch
Browse files Browse the repository at this point in the history
* branch 'tty-fixes'
  tty: use the new 'flush_delayed_work()' helper to do ldisc flush
  workqueue: add 'flush_delayed_work()' to run and wait for delayed work
  tty: Make flush_to_ldisc() locking more robust
  • Loading branch information
Linus Torvalds committed Oct 15, 2009
2 parents a3ccf63 + 97ad5a0 commit bd07041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ EXPORT_SYMBOL(schedule_delayed_work);
*/
void flush_delayed_work(struct delayed_work *dwork)
{
if (del_timer(&dwork->timer)) {
if (del_timer_sync(&dwork->timer)) {
struct cpu_workqueue_struct *cwq;
cwq = wq_per_cpu(keventd_wq, get_cpu());
__queue_work(cwq, &dwork->work);
Expand Down

0 comments on commit bd07041

Please sign in to comment.