Re: [PATCHv2] mm/slub: fix lockups on PREEMPT && !SMP kernels

From: Christoph Lameter
Date: Thu Mar 19 2015 - 12:16:20 EST


On Thu, 19 Mar 2015, Joonsoo Kim wrote:

> > I was under the impression that this_cpu operations would always result
> > in an access, much like the *_ONCE accessors, so we should aways redo
> > the access for this_cpu_read(s->cpu_slab->tid). Is that not the case?
>
> I'm not the expert on that operation. Christoph could answer it.

this_cpu_read() always generates a load via an asm instruction.
--
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/