netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* meant hlist_* - Re: hash_list and rcu locking question
@ 2008-08-07  1:49 Tobias Koeck
  2008-08-07  3:53 ` Evgeniy Polyakov
  2008-08-08 22:21 ` Paul E. McKenney
  0 siblings, 2 replies; 3+ messages in thread
From: Tobias Koeck @ 2008-08-07  1:49 UTC (permalink / raw)
  To: Evgeniy Polyakov; +Cc: NetDev

I mean the rcu function for the hlist_{head,list} ....

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
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: meant hlist_* - Re: hash_list and rcu locking question
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Evgeniy Polyakov @ 2008-08-07  3:53 UTC (permalink / raw)
  To: Tobias Koeck; +Cc: NetDev

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

include/linux/rculist.h : hlist_for_each_entry_rcu and friends.
Does it contain needded calls?

-- 
	Evgeniy Polyakov

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: meant hlist_* - Re: hash_list and rcu locking question
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Paul E. McKenney @ 2008-08-08 22:21 UTC (permalink / raw)
  To: Tobias Koeck; +Cc: Evgeniy Polyakov, NetDev

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-08-08 22:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).