lkml.org 
[lkml]   [2017]   [Aug]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH net-next] net: dsa: User per-cpu 64-bit statistics
    From
    Date
    On Mon, 2017-08-21 at 17:10 -0700, Florian Fainelli wrote:

    > Well if we return 1 from atomic_inc_return() and the previous value was
    > zero, of course we are going to be bugging here. The idea behind the
    > patch I suppose is to make sure that we always get an odd number upon
    > u64_stats_update_begin()/entry, and an even number upon
    > u64_stats_update_end()/exit, right?

    Yes, this is right.



    \
     
     \ /
      Last update: 2017-08-22 14:58    [W:2.670 / U:0.084 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site