lkml.org 
[lkml]   [2009]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] netfilter: revised locking for x_tables


    Ack.

    It could do with the update from Eric about how non-current CPU writelocks
    only require preemp-disable around get_counters() (and then the
    local_bh_disable() only around the current-CPU case).

    I _think_ get_counters() is the only case that can use that optimization,
    but it's quite possible that it's worth doing especially for machines with
    lots of cores, if BH latency is an issue (and it might be).

    Of course, for the lots-and-lots of cores case, even the preemption
    disable might be an issue. And then it really does get much more
    complicated. At that point, you probably want the RCU thing.

    Linus


    \
     
     \ /
      Last update: 2009-04-28 19:11    [W:5.390 / U:0.436 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site