sched: Fix trace_sched_switch(.prev_state)
[ Upstream commit 8feb053d ] Gabriele noted that in case of signal_pending_state(), the tracepoint sees a stale task-state. Fixes: fa2c3254 ("sched/tracing: Don't re-read p->state when emitting sched_switch event") Reported-by:Gabriele Monaco <gmonaco@redhat.com> Signed-off-by:
Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Valentin Schneider <vschneid@redhat.com> Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
Please sign in to comment