From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Am=C3=A9rico?= Wang Subject: Re: [PATCH net-next-2.6 V2] igmp: RCU conversion of in_dev->mc_list Date: Sat, 13 Nov 2010 14:44:21 +0800 Message-ID: <20101113064421.GE3837@hack> References: <1289489007.17691.1310.camel@edumazet-laptop> <20101112071323.GB5660@cr0.nay.redhat.com> <1289546874.17691.1774.camel@edumazet-laptop> <20101112081945.GA5949@cr0.nay.redhat.com> <1289553759.3185.1.camel@edumazet-laptop> <1289568858.3185.252.camel@edumazet-laptop> <1289571974.3185.254.camel@edumazet-laptop> <1289576810.3185.261.camel@edumazet-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: =?utf-8?Q?Am=C3=A9rico?= Wang , Cypher Wu , linux-kernel@vger.kernel.org, netdev , David Miller To: Eric Dumazet Return-path: Received: from mail-yx0-f174.google.com ([209.85.213.174]:44178 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751588Ab0KMGlT (ORCPT ); Sat, 13 Nov 2010 01:41:19 -0500 Content-Disposition: inline In-Reply-To: <1289576810.3185.261.camel@edumazet-laptop> Sender: netdev-owner@vger.kernel.org List-ID: > >Here is an updated version. > >[PATCH net-next-2.6 V2] igmp: RCU conversion of in_dev->mc_list > >in_dev->mc_list is protected by one rwlock (in_dev->mc_list_lock). > >This can easily be converted to a RCU protection. > >Writers hold RTNL, so mc_list_lock is removed, not replaced by a >spinlock. Ah, this saves much work. > >Signed-off-by: Eric Dumazet >Cc: Cypher Wu >Cc: Am=C3=A9rico Wang I just did a quick look, it looks good to me. Thanks!