From: Linus Torvalds Date: Wed, 14 Oct 2009 16:16:42 +0000 (-0700) Subject: workqueue: add 'flush_delayed_work()' to run and wait for delayed work X-Git-Tag: v2.6.32-rc5~14^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c53e46314562fe814b0afef6cfcbd2f562b017c;p=pandora-kernel.git 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 [ Fixed to use 'del_timer_sync()' as noted by Oleg ] Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed