lkml.org 
[lkml]   [2005]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] Allow lockless traversal of notifier lists
    On Mon, Nov 28, 2005 at 09:47:47PM +0530, Dipankar Sarma wrote:
    > On Mon, Nov 28, 2005 at 05:05:47PM +0100, Andi Kleen wrote:
    > > *
    > > * Returns zero on success, or %-ENOENT on failure.
    > > */
    > > @@ -175,6 +181,7 @@
    > >
    >
    > There should be an smp_read_barrier_depends() here for the first
    > dereferencing of the notifier block head, I think.

    Why? The one at the top of the block should be enough, shouldn' it?

    -Andi


    >
    > > while(nb)
    > > {
    > > + smp_read_barrier_depends();
    > > ret=nb->notifier_call(nb,val,v);
    > > if(ret&NOTIFY_STOP_MASK)
    > > {
    >
    > Thanks
    > Dipankar
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-11-28 17:29    [W:0.018 / U:60.412 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site