lkml.org 
[lkml]   [2012]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH RFC tip/core/rcu] rcu: direct algorithmic SRCU implementation
    From
    Date
    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


    \
     
     \ /
      Last update: 2012-02-16 11:55    [W:0.033 / U:0.688 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site