UPSTREAM: sched: Unconditionally use full-fat wait_task_inactive()
While modifying wait_task_inactive() for PREEMPT_RT; the build robot noted that UP got broken. This led to audit and consideration of the UP implementation of wait_task_inactive(). It looks like the UP implementation is also broken for PREEMPT; consider task_current_syscall() getting preempted between the two calls to wait_task_inactive(). Therefore move the wait_task_inactive() implementation out of CONFIG_SMP and unconditionally use it. Signed-off-by:Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20230602103731.GA630648%40hirez.programming.kicks-ass.net (cherry picked from commit d5e15866) Bug: 292064955 Bug: 304294320 Change-Id: Ief91cf48c27533fee47d5bd049c8a9be4010e6f6 Signed-off-by:
Elliot Berman <quic_eberman@quicinc.com> (cherry picked from commit b52b33e9)
Loading
Please sign in to comment