lkml.org 
[lkml]   [2015]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [GIT PULL] ring-buffer: Replace this_cpu_*() with __this_cpu_*()
    On Mon, 23 Mar 2015, Steven Rostedt wrote:

    > Any comment on this?

    Yes we could do this but I am traveling a bit right now. Sorry not that
    responsive.

    It will not be strictly correct since a fetch or write could occur from a
    different cpu and thereby kick out a cacheline. But that is minor I think.

    The main issue is that this makes this_cpu_read/write different from other
    this_cpu operations which guarantee that these are "per cpu atomic" in the
    sense that they are either completely executed or not. But that is mostly
    important for this_cpu_ ops that are RMV operations like this_cpu_inc().



    \
     
     \ /
      Last update: 2015-03-24 20:01    [W:5.791 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site