Re: [tip:sched/core] cpu: Remove incorrect BUG_ON

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oleg Nesterov
Date: Tuesday, November 23, 2010 - 10:31 am

On 11/23, Peter Zijlstra wrote:

How? It can't. By the time __cpu_die() is called, we do not even
know whether context_switch() was finished. All we know is that
rq->curr = idle.

native_cpu_die() correctly waits in a loop until the idle thread
sets CPU_DEAD.

And I think every smp_ops->cpu_die() implementation should synhcronize
with ->cpu_disable(), otherwise it is buggy.


I think __cpu_die() should ensure it is dead.


OK. This is really minor. Perhaps it is safer to keep this wait just
to preserve the current behaviour.

Oleg.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[tip:sched/core] cpu: Remove incorrect BUG_ON, tip-bot for Peter Zi ..., (Tue Nov 23, 3:22 am)
Re: [tip:sched/core] cpu: Remove incorrect BUG_ON, Oleg Nesterov, (Tue Nov 23, 7:39 am)
Re: [tip:sched/core] cpu: Remove incorrect BUG_ON, Peter Zijlstra, (Tue Nov 23, 8:05 am)
Re: [tip:sched/core] cpu: Remove incorrect BUG_ON, Oleg Nesterov, (Tue Nov 23, 8:08 am)
Re: [tip:sched/core] cpu: Remove incorrect BUG_ON, Peter Zijlstra, (Tue Nov 23, 10:16 am)
Re: [tip:sched/core] cpu: Remove incorrect BUG_ON, Oleg Nesterov, (Tue Nov 23, 10:31 am)