diff options
| author | 2010-01-11 14:21:25 +0800 | |
|---|---|---|
| committer | 2010-01-21 13:39:04 +0100 | |
| commit | 6d558c3ac9b6508d26fd5cadccce51fc9d726b1c (patch) | |
| tree | dbad2aa9c5874ea7ee5fff1f9f32b0be208c3df6 /kernel/trace/trace_stack.c | |
| parent | sched: Fix vmark regression on big machines (diff) | |
| download | linux-dev-6d558c3ac9b6508d26fd5cadccce51fc9d726b1c.tar.xz linux-dev-6d558c3ac9b6508d26fd5cadccce51fc9d726b1c.zip | |
sched: Reassign prev and switch_count when reacquire_kernel_lock() fail
Assume A->B schedule is processing, if B have acquired BKL before and it
need reschedule this time. Then on B's context, it will go to
need_resched_nonpreemptible for reschedule. But at this time, prev and
switch_count are related to A. It's wrong and will lead to incorrect
scheduler statistics.
Signed-off-by: Yong Zhang <yong.zhang0@gmail.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <2674af741001102238w7b0ddcadref00d345e2181d11@mail.gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace_stack.c')
0 files changed, 0 insertions, 0 deletions
