Re: [PATCH] (5/8) Eliminate brlock from netfilter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(&reg->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
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux