Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 14 Mar 2003 00:21:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 14 Mar 2003 00:21:53 -0500 Received: from modemcable092.130-200-24.mtl.mc.videotron.ca ([24.200.130.92]:56631 "EHLO montezuma.mastecende.com") by vger.kernel.org with ESMTP id ; Fri, 14 Mar 2003 00:21:52 -0500 Date: Fri, 14 Mar 2003 00:28:59 -0500 (EST) From: Zwane Mwaikambo X-X-Sender: zwane@montezuma.mastecende.com To: Stephen Hemminger cc: Andrew Morton , Alan Cox , Linux Kernel Mailing List Subject: Re: [PATCH] (3/5) Remove brlock from bridge In-Reply-To: <1047595202.3136.102.camel@dell_ss3.pdx.osdl.net> Message-ID: References: <1047595202.3136.102.camel@dell_ss3.pdx.osdl.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 749 Lines: 26 +static void __br_del_if(struct net_bridge_port *p) +{ - } - - pptr = &((*pptr)->next); - } + br_fdb_delete_by_port(p->br, p); - br_fdb_delete_by_port(br, p); - kfree(p); - dev_put(dev); - - return 0; + /* defer actual free till after receive BH has completed */ + call_rcu(&p->rcu, (void (*)(void *)) kfree, p); } Missing dev_put? Perhaps you'd want to register a callback which also decrements the reference count. Zwane - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/