sched: Fix trace_sched_switch(.prev_state)
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>
Loading
Please sign in to comment