Skip to content
Commit 8c53e463 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

workqueue: add 'flush_delayed_work()' to run and wait for delayed work



It basically turns a delayed work into an immediate work, and then waits
for it to finish, thus allowing you to force (and wait for) an immediate
flush of a delayed work.

We'll want to use this in the tty layer to clean up tty_flush_to_ldisc().

Acked-by: default avatarOleg Nesterov <oleg@redhat.com>
[ Fixed to use 'del_timer_sync()' as noted by Oleg ]
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c8e33141
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment