netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Tobias Koeck <tobias.koeck@gmail.com>
Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru>, NetDev <netdev@vger.kernel.org>
Subject: Re: meant hlist_* - Re: hash_list and rcu locking question
Date: Fri, 8 Aug 2008 15:21:17 -0700	[thread overview]
Message-ID: <20080808222117.GL6760@linux.vnet.ibm.com> (raw)
In-Reply-To: <379e30200808061849w3a47f981s5ccde245059f595b@mail.gmail.com>

On Thu, Aug 07, 2008 at 03:49:43AM +0200, Tobias Koeck wrote:
> I mean the rcu function for the hlist_{head,list} ....

There are some examples in http://lwn.net/Articles/262464/

This document notes that updates must be protected by some sort of
synchronization mechanism, for example, a lock.  RCU protects the
readers.

Additional information is available at http://lwn.net/Articles/263130/
and http://lwn.net/Articles/264090/

							Thanx, Paul

> Greetings
> t.
> 
> On Wed, Aug 6, 2008 at 10:54 PM, Evgeniy Polyakov <johnpol@2ka.mipt.ru> wrote:
> > Hi Tobias.
> >
> > On Wed, Aug 06, 2008 at 05:56:43PM +0200, Tobias Koeck (tobias.koeck@gmail.com) wrote:
> >> Are the hash_list rcu functions avoiding all locking problems (even
> >> the one with only one CPU)?
> >
> > What is hash list? hlist? Or list in a hash bucket?
> > Does include/linux/rculist.h contain needed bits?
> >
> >> Are there some abstract examples for the use of the hash_{head,list} structures?
> >
> > Sorry, my kernel source tree does not know what is 'hash_head'.
> > What data structure exactly do you mean?
> >
> > --
> >        Evgeniy Polyakov
> >
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

      parent reply	other threads:[~2008-08-08 22:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-07  1:49 meant hlist_* - Re: hash_list and rcu locking question Tobias Koeck
2008-08-07  3:53 ` Evgeniy Polyakov
2008-08-08 22:21 ` Paul E. McKenney [this message]

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=20080808222117.GL6760@linux.vnet.ibm.com \
    --to=paulmck@linux.vnet.ibm.com \
    --cc=johnpol@2ka.mipt.ru \
    --cc=netdev@vger.kernel.org \
    --cc=tobias.koeck@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).