Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 11 Mar 2003 20:18:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 11 Mar 2003 20:18:05 -0500 Received: from modemcable092.130-200-24.mtl.mc.videotron.ca ([24.200.130.92]:18664 "EHLO montezuma.mastecende.com") by vger.kernel.org with ESMTP id ; Tue, 11 Mar 2003 20:18:04 -0500 Date: Tue, 11 Mar 2003 20:25:40 -0500 (EST) From: Zwane Mwaikambo X-X-Sender: zwane@montezuma.mastecende.com To: Stephen Hemminger cc: Linus Torvalds , David Miller , Linux Kernel Mailing List , "" Subject: Re: [PATCH] (5/8) Eliminate brlock from netfilter In-Reply-To: <1047428094.15872.105.camel@dell_ss3.pdx.osdl.net> Message-ID: References: <1047428094.15872.105.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: 627 Lines: 23 On Tue, 11 Mar 2003, Stephen Hemminger wrote: > void nf_unregister_hook(struct nf_hook_ops *reg) > { > - br_write_lock_bh(BR_NETPROTO_LOCK); > + spin_lock_bh(&nf_lock); > list_del(®->list); > - br_write_unlock_bh(BR_NETPROTO_LOCK); > + spin_unlock_bh(&nf_lock); > + > + synchronize_kernel(); > } Won't that have to be list_del_rcu there? Zwane -- function.linuxpower.ca - 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/