Message ID | 20121201143926.GB2685@htj.dyndns.org (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
On Sat, 1 Dec 2012, Tejun Heo wrote: > Can you please test this one too? Thanks! > > […] > + if (!delay) { > + __queue_work(cpu, wq, &dwork->work); > + return; > + } > + > […] > - if (!delay) > - return queue_work_on(cpu, wq, &dwork->work); > - Yes, this one fixes the bug too (on v3.7.0-rc7). Anders -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 042d221..94964d1 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -1364,6 +1364,11 @@ static void __queue_delayed_work(int cpu, struct workqueue_struct *wq, BUG_ON(timer_pending(timer)); BUG_ON(!list_empty(&work->entry)); + if (!delay) { + __queue_work(cpu, wq, &dwork->work); + return; + } + timer_stats_timer_set_start_info(&dwork->timer); /* @@ -1417,9 +1422,6 @@ bool queue_delayed_work_on(int cpu, struct workqueue_struct *wq, bool ret = false; unsigned long flags; - if (!delay) - return queue_work_on(cpu, wq, &dwork->work); - /* read the comment in __queue_work() */ local_irq_save(flags);