diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-10-14 18:16:42 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-10-15 00:11:35 +0200 |
commit | 8c53e46314562fe814b0afef6cfcbd2f562b017c (patch) | |
tree | e9b68a33c470a91967c5930438e93beeb3126c50 /Documentation | |
parent | tty: Make flush_to_ldisc() locking more robust (diff) | |
download | linux-8c53e46314562fe814b0afef6cfcbd2f562b017c.tar.xz linux-8c53e46314562fe814b0afef6cfcbd2f562b017c.zip |
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: Oleg Nesterov <oleg@redhat.com>
[ Fixed to use 'del_timer_sync()' as noted by Oleg ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions