diff options
| author | Oleg Nesterov <[email protected]> | 2009-09-05 11:17:06 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-09-05 11:30:42 -0700 |
| commit | 4e49627b9bc29a14b393c480e8c979e3bc922ef7 (patch) | |
| tree | 209b69da65abbbffb7abeaea60f17d46f38485fe /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 37d0892c5a94e208cf863e3b7bac014edee4346d (diff) | |
workqueues: introduce __cancel_delayed_work()
cancel_delayed_work() has to use del_timer_sync() to guarantee the timer
function is not running after return. But most users doesn't actually
need this, and del_timer_sync() has problems: it is not useable from
interrupt, and it depends on every lock which could be taken from irq.
Introduce __cancel_delayed_work() which calls del_timer() instead.
The immediate reason for this patch is
http://bugzilla.kernel.org/show_bug.cgi?id=13757
but hopefully this helper makes sense anyway.
As for 13757 bug, actually we need requeue_delayed_work(), but its
semantics are not yet clear.
Merge this patch early to resolves cross-tree interdependencies between
input and infiniband.
Signed-off-by: Oleg Nesterov <[email protected]>
Cc: Dmitry Torokhov <[email protected]>
Cc: Roland Dreier <[email protected]>
Cc: Stefan Richter <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions