The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Dipankar Sarma <dipankar@in.ibm.com>
To: Andi Kleen <ak@suse.de>
Cc: akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Allow lockless traversal of notifier lists
Date: Mon, 28 Nov 2005 23:12:03 +0530	[thread overview]
Message-ID: <20051128174203.GB4359@in.ibm.com> (raw)
In-Reply-To: <20051128162709.GC20775@brahms.suse.de>

On Mon, Nov 28, 2005 at 05:27:09PM +0100, Andi Kleen wrote:
> 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?
> 

Don't we insert at the front of the list ? Shouldn't the read-side
on alpha see the contents of the new notifier block before it sees
the pointer to the first notifier block in the list head ?

Thanks
Dipankar

  reply	other threads:[~2005-11-28 17:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-28 13:37 [PATCH] Allow lockless traversal of notifier lists Andi Kleen
2005-11-28 16:01 ` Dipankar Sarma
2005-11-28 16:05   ` Andi Kleen
2005-11-28 16:17     ` Dipankar Sarma
2005-11-28 16:27       ` Andi Kleen
2005-11-28 17:42         ` Dipankar Sarma [this message]
2005-11-29  0:01           ` Andi Kleen
2005-11-29  6:11             ` Dipankar Sarma

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051128174203.GB4359@in.ibm.com \
    --to=dipankar@in.ibm.com \
    --cc=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox