Re: softlockups in multi_cpu_stop

Linus Torvalds
2015-03-06T21:24:40Z

On Fri, Mar 6, 2015 at 1:12 PM, Jason Low <jason.low2@hp.com> wrote:
>
> + while (true) {
> + if (sem->owner != owner)
> + break;

That looks *really* odd.

Why is this not

while (sem->owner == owner) {

Also, this "barrier()" now lost the comment:

> + barrier();

so it looks very odd indeed.

Linus