Re: re. Spurious wakeup on a newly created kthread

From: Eric W. Biederman
Date: Sat Jun 25 2022 - 20:22:07 EST



Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> writes:

> Anyway, the whole "don't wake up thread until it's all done" is a
> separate and independent issue from the "odd use of kthreadd" issue.

Yes. "don't wake up a kthread until it's all done" is a much easier
change that will simplify things tremendously.

Further it is necessary for Peter Zijlstra's rewrite of the kernel
freezer. As anything that isn't a special stop state (which
TASK_UNINTERRUPTIBLE is not) will receive a spurious wake up on when
thawed out.

Eric