Re: [PATCH] workqueue: Move the position of debug_work_activate() in __queue_work()

2021-02-17 Thread Lai Jiangshan
On Thu, Feb 11, 2021 at 4:24 PM wrote: > > From: Zqiang > > The debug_work_activate() is called on the premise that > the work can be inserted, because if wq be in WQ_DRAINING > status, insert work may be failed. > Please add: Fixes: e41e704bc4f49 ("workqueue: improve destroy_workqueue() debugga

回复: [PATCH] workqueue: Move the position of debug_work_activate() in __queue_work()

2021-02-17 Thread Zhang, Qiang
the position of debug_work_activate() in __queue_work() From: Zqiang The debug_work_activate() is called on the premise that the work can be inserted, because if wq be in WQ_DRAINING status, insert work may be failed. Signed-off-by: Zqiang --- kernel/workqueue.c | 2 +- 1 file changed, 1

[PATCH] workqueue: Move the position of debug_work_activate() in __queue_work()

2021-02-11 Thread qiang . zhang
From: Zqiang The debug_work_activate() is called on the premise that the work can be inserted, because if wq be in WQ_DRAINING status, insert work may be failed. Signed-off-by: Zqiang --- kernel/workqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/workqueue.c