[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070907195741.GG8864@linux.vnet.ibm.com>
Date: Fri, 7 Sep 2007 12:57:41 -0700
From: "Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>
To: Johannes Berg <johannes@...solutions.net>
Cc: linux-kernel <linux-kernel@...r.kernel.org>,
Herbert Xu <herbert@...dor.apana.org.au>,
Randy Dunlap <randy.dunlap@...cle.com>,
Pavel Emelianov <xemul@...nvz.org>,
Zach Brown <zach.brown@...cle.com>,
Dave Jones <davej@...hat.com>, Oleg Nesterov <oleg@...sign.ru>
Subject: Re: [PATCH] list.h: add list_for_each_entry_continue_rcu
On Fri, Sep 07, 2007 at 09:09:52PM +0200, Johannes Berg wrote:
> On Fri, 2007-09-07 at 08:34 -0700, Paul E. McKenney wrote:
>
> > > + * Continue to iterate over rcu list of given type, continuing after
> > > + * the current position.
> >
> > Please add something like the following to this comment:
> >
> > Note that the caller is responsible for making sure that
> > the element remains in place between the earlier iterator
> > and this one. One way to do this is to ensure that
> > both iterators are covered by the same rcu_read_lock(),
> > while others involve reference counts, flags, or mutexes.
>
> Sure, will do. Should this comment also be added to
> list_for_each_continue_rcu()?
Actually, list_for_each_continue_rcu() needs to be removed in favor of
your new list_for_each_entry_continue_rcu(). There are currently only
two users as of 2.6.22. One of them immediately does a list_entry(),
and the other would convert easily as well. So please let me know
when this gets accepted! ;-)
Thanx, Paul
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists