Re: [PATCH] slub: Fix the lockless code on 32-bit platforms withno 64-bit cmpxchg

From: Ben Greear
Date: Wed May 04 2011 - 18:25:26 EST


On 05/04/2011 03:00 PM, Linus Torvalds wrote:
On Wed, May 4, 2011 at 2:52 PM, Ben Greear<greearb@xxxxxxxxxxxxxxx> wrote:

This patch appears to fix the crashes I was seeing on my 32-bit
Atom system.

It would crash within 30 seconds of booting every time before this patch...

Oh, well - I already committed it and pushed out, otherwise I'd have
added that piece of information to the commit log.

No worries...I'm just happy to finally be able to boot .39 :)

But it's good to know that others had seen this too, just never
realized what was going on.

Btw, that does seem to imply that your kernel config is somewhat odd.
We _should_ be using cmpxchg8b natively if you compile for anything
newer than PPro, and that includes atom.

Did you perhaps say "compile for Pentium" (which is pretty close to
Atom in some respects - but we don't trust that all Pentium-class
CPU's have cmpxchg8b, even if the Intel ones all should).

Well, yes. I'm compiling for 'M586' it seems, plus SMP, pre-empt, etc.

Maybe it's time to move to a newer processor family!

Thanks,
Ben

--
Ben Greear <greearb@xxxxxxxxxxxxxxx>
Candela Technologies Inc http://www.candelatech.com

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