lkml.org 
[lkml]   [2015]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2] netlink: Replace rhash_portid with bound
    Hello, Linus.

    On Tue, Sep 22, 2015 at 11:42:33AM -0700, Linus Torvalds wrote:
    ...
    > smp_rmb() should generally be about the same cost as an acquire. It
    > can go either way.
    >
    > So *if* the algorithm is amenable to smp_wmb()/smp_rmb() kind of
    > barriers, that's actually quite possibly better than acquire/release.

    I see. The write path here is cold so the competition is between rmb
    and acquire. Unless some significant archs completely screwed it up,
    acquire still seems like the better option. It's essentially free on
    x86 after all.

    Thanks.

    --
    tejun


    \
     
     \ /
      Last update: 2015-09-22 21:21    [W:6.069 / U:0.340 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site