Re: [PATCH RFC tip/core/rcu] rcu: direct algorithmic SRCUimplementation

From: Peter Zijlstra
Date: Thu Feb 16 2012 - 05:52:45 EST


On Thu, 2012-02-16 at 05:50 -0500, Mathieu Desnoyers wrote:
> > Ah, so something like this?
> >
> > ACCESS_ONCE(this_cpu_ptr(sp->per_cpu_ref)->c[idx]) +=
> > SRCU_USAGE_COUNT + 1;
> >
> > Now that you mention it, this does look nicer, applied here and to
> > srcu_read_unlock().
>
> I think Peter refers to __this_cpu_add().

I'm not sure that implies the ACCESS_ONCE() thing
--
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/