[lkml]   [2005]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] arp_queue: serializing unlink + kfree_skb
    On Thu, Feb 10, 2005 at 01:23:04AM -0300, Werner Almesberger wrote:
    > What happens if the operation could return a value, but the user
    > ignores it ? E.g. if I don't like smp_mb__*, could I just use
    > atomic_inc_and_test(foo);
    > instead of
    > smp_mb__before_atomic_inc();
    > atomic_inc(foo);
    > smp_mb__after_atomic_dec();

    Yes you can.

    > ? If yes, is this a good idea ?

    Dave mentioned that on sparc64, atomic_inc_and_test is much more
    expensive than the second variant.

    Visit Openswan at
    Email: Herbert Xu ~{PmV>HI~} <>
    Home Page:
    PGP Key:
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:10    [W:0.174 / U:48.384 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site