1 Nov 2011 08:53
Re: [PATCH next-net] ipv6: Use hlist_for_each_entry_rcu_bh() in ipv6_chk_same_addr()
David Miller <davem <at> davemloft.net>
2011-11-01 07:53:23 GMT
2011-11-01 07:53:23 GMT
From: roy.qing.li <at> gmail.com Date: Tue, 1 Nov 2011 13:30:55 +0800 > From: RongQing.Li <roy.qing.li <at> gmail.com> > > Replace hlist_for_each_entry and hlist_for_each_entry_rcu with > hlist_for_each_entry_rcu_bh() in ipv6_chk_same_addr and > ipv6_chk_addr to keep that all dereference methods for addr_list > are same, and take advantage of _rcu_bh() critical section > checking and prevention from compiler merging or refetching. > > Signed-off-by: RongQing.Li <roy.qing.li <at> gmail.com> Callers are already in an RCU section with BH disabled when these functions are invoked.
RSS Feed