diff options
| author | Oleg Nesterov <[email protected]> | 2007-05-09 02:34:11 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-05-09 12:30:52 -0700 |
| commit | dfb4b82e1c631b1a6057e77212996a890aa515b7 (patch) | |
| tree | 9e2fcd9ff6bd990740b3f0a48fc4194f2e64d89f /include/linux/debugobjects.h | |
| parent | f293ea92007419e4f9c52db0cf57af17f45b9f94 (diff) | |
workqueue: make cancel_rearming_delayed_workqueue() work on idle dwork
cancel_rearming_delayed_workqueue(dwork) will hang forever if dwork was not
scheduled, because in that case cancel_delayed_work()->del_timer_sync() never
returns true.
I don't know if there are any callers which may have problems, but this is not
so convenient, and the fix is very simple.
Q: looks like we don't need "struct workqueue_struct *wq" parameter. If the
timer was aborted successfully, get_wq_data() == wq. Is it worth to add the
new function?
Signed-off-by: Oleg Nesterov <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions