Subject: Re: [PATCH] netlink: convert DIY reader/writer to mutex and RCU (v2)

From: Stephen Hemminger <[email-masked]>
Date: Thu, 18 Mar 2010 17:44:59 -0700

On Tue, 16 Mar 2010 16:00:35 +0100
Eric Dumazet <[email-masked]> wrote:

> Le lundi 08 mars 2010 à 14:00 -0800, Stephen Hemminger a écrit :
> > The netlink table locking was open coded version of reader/writer
> > sleeping lock.  Change to using mutex and RCU which makes
> > code clearer, shorter, and simpler.
> > 
> > Could use sk_list nulls but then would have to have kmem_cache
> > for netlink handles and that seems like unnecessary bloat.
> > 
> > Signed-off-by: Stephen Hemminger <[email-masked]>
> > 
> > ---

Maybe using rcu list_nulls would be better.
The problem is what about the bind_node hash list.