Skip to content

sched: Check TASK_DEAD rather than EXIT_DEAD in schedule_debug()

Oleg Nesterov lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1sched: Check TASK_DEAD rather than EXIT_DEAD in schedule_debug()kernel/sched/core.c+3 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] sched: Check TASK_DEAD rather than EXIT_DEAD in schedule_debug()
Quoted 10 lines · Peter Zijlstra
Quoted 5 lines · Oleg Nesterov

As for "nobody should use exit_state". I'll try to recheck, but iirc we already discussed this... do you remember any reason why schedule_debug() can't check prev->state == TASK_DEAD instead of ->exit_state?

I have no such memories :/ but a quick test shows that such a kernel does boot without issue.

probably my memory fools me. OK, it seems that you agree with this change, hopefully we both can't be wrong ;)

Quoted 1 line

Thanks! And since picked this series, perhaps you can also queue this one?

Oleg.