Re: [PATCH v3] kthread: Work could not be queued when worker being destroyed
From: Tejun Heo
Date: Mon Jul 06 2020 - 10:59:51 EST
On Sun, Jul 05, 2020 at 09:30:18AM +0800, qiang.zhang@xxxxxxxxxxxxx wrote:
> From: Zhang Qiang <qiang.zhang@xxxxxxxxxxxxx>
>
> Before the work is put into the queue of the worker thread,
> the state of the worker thread needs to be detected,because
> the worker thread may be in the destruction state at this time.
>
> Signed-off-by: Zhang Qiang <qiang.zhang@xxxxxxxxxxxxx>
> Suggested-by: Petr Mladek <pmladek@xxxxxxxx>
> Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>
Andrew already brought this up but can you please provide some context on
why you're making this change?
Thanks.
--
tejun