[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110701141125.GS16021@Chamillionaire.breakpoint.cc>
Date: Fri, 1 Jul 2011 16:11:25 +0200
From: Florian Westphal <fw@...len.de>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: Florian Westphal <fw@...len.de>, Patrick McHardy <kaber@...sh.net>,
Eric Leblond <eric@...it.org>, sclark46@...thlink.net,
Kuzin Andrey <kuzinandrey@...dex.ru>,
Anders Nilsson Plymoth <lanilsson@...il.com>,
netfilter-devel <netfilter-devel@...r.kernel.org>,
netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH 1/2] nfnetlink: add RCU in nfnetlink_rcv_msg()
Eric Dumazet <eric.dumazet@...il.com> wrote:
> Le vendredi 01 juillet 2011 à 09:49 +0200, Florian Westphal a écrit :
> > But I guess even having to grab a refcount would be
> > a huge win as opposed to holding on to the nfnl mutex...
> >
> > We'd also need to audit all ->call implementations; most
> > of them assume the nfnl_mutex is being hold.
>
> We can do another way : Introduce a new ->call_rcu() implementation
> and convert places where we prefer not holding nfnf_mutex.
> If/when all places are converted, remove the ->call() field for good.
Sounds reasonable to me.
Both patches look great, thanks a lot for doing this Eric!
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists