Re: [PATCH] set_cpus_allowed() atomicity fix

Linus Torvalds (torvalds@transmeta.com)
Wed, 9 Oct 2002 16:17:11 -0700 (PDT)


On 9 Oct 2002, Robert Love wrote:
>
> Anyhow, attached patch fixes the atomicity debugging error.

I don't think this is right. You have to be preempt safe over the whole
time you're holding the "rq" pointer, I think. Otherwise you might move to
another CPU, at which point the rq state isn't valid any more. Or maybe I
misunderstood.

Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/