projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66f41d4
)
workqueue: flush_delayed_work: keep the original workqueue for re-queueing
author
Oleg Nesterov
<oleg@redhat.com>
Fri, 30 Apr 2010 05:23:51 +0000
(07:23 +0200)
committer
Tejun Heo
<tj@kernel.org>
Fri, 30 Apr 2010 05:24:51 +0000
(07:24 +0200)
flush_delayed_work() always uses keventd_wq for re-queueing,
but it should use the workqueue this dwork was queued on.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/workqueue.c
b/kernel/workqueue.c
index dee48658805c4e58d1b4fc5776a165cc18e8c464..5bfb213984b2b2b740fb46bfbe945b6eaf6110ce 100644
(file)
--- a/
kernel/workqueue.c
+++ b/
kernel/workqueue.c
@@
-774,7
+774,7
@@
void flush_delayed_work(struct delayed_work *dwork)
{
if (del_timer_sync(&dwork->timer)) {
struct cpu_workqueue_struct *cwq;
- cwq = wq_per_cpu(
keventd_
wq, get_cpu());
+ cwq = wq_per_cpu(
get_wq_data(&dwork->work)->
wq, get_cpu());
__queue_work(cwq, &dwork->work);
put_cpu();
}