Re: [PATCH 3/3] kthread: Stop abusing TASK_UNINTERRUPTIBLE (INCOMPLETE)

From: Linus Torvalds
Date: Sun Jun 26 2022 - 16:55:56 EST


On Sun, Jun 26, 2022 at 1:23 PM Tejun Heo <tj@xxxxxxxxxx> wrote:
>
> Would it be a reasonable tradeoff to have a kthread wrapper -
> kthread_start() or whatever - which ensures that it is actually called
> once on a new task? That way, we can keep the init code inline and
> bugs on both sides (not starting and starting incorrectly) are
> obvious.

Yeah, that sounds reasonable to me.

Linus