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

2021-03-03 Thread Tejun Heo
On Thu, Feb 18, 2021 at 11:16:49AM +0800, qiang.zh...@windriver.com 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. > > Fixes: e41e704bc4f4 ("workqueue: improve dest

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

2021-03-03 Thread Zhang, Qiang
Hello Tejun Please review this change. Thanks Qiang > >发件人: Zhang, Qiang >发送时间: 2021年2月18日 11:17 >收件人: jiangshan...@gmail.com; t...@kernel.org >抄送: linux-kernel@vger.kernel.org >主题: [PATCH v2] workqueue: Move the position of >deb

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

2021-02-17 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. Fixes: e41e704bc4f4 ("workqueue: improve destroy_workqueue() debuggability") Signed-off-by: Zqiang Reviewed-by: Lai Jiangshan --- v