net: remove INIT_RCU_HEAD() usage
call_rcu() will unconditionally reinitialize RCU head anyway. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
f6ca057f1b
commit
dc4c2c3105
@@ -315,7 +315,6 @@ int netlbl_domhsh_add(struct netlbl_dom_map *entry,
|
||||
entry_old = netlbl_domhsh_search_def(entry->domain);
|
||||
if (entry_old == NULL) {
|
||||
entry->valid = 1;
|
||||
INIT_RCU_HEAD(&entry->rcu);
|
||||
|
||||
if (entry->domain != NULL) {
|
||||
u32 bkt = netlbl_domhsh_hash(entry->domain);
|
||||
|
@@ -327,7 +327,6 @@ static int netlbl_unlhsh_add_addr4(struct netlbl_unlhsh_iface *iface,
|
||||
entry->list.addr = addr->s_addr & mask->s_addr;
|
||||
entry->list.mask = mask->s_addr;
|
||||
entry->list.valid = 1;
|
||||
INIT_RCU_HEAD(&entry->rcu);
|
||||
entry->secid = secid;
|
||||
|
||||
spin_lock(&netlbl_unlhsh_lock);
|
||||
@@ -373,7 +372,6 @@ static int netlbl_unlhsh_add_addr6(struct netlbl_unlhsh_iface *iface,
|
||||
entry->list.addr.s6_addr32[3] &= mask->s6_addr32[3];
|
||||
ipv6_addr_copy(&entry->list.mask, mask);
|
||||
entry->list.valid = 1;
|
||||
INIT_RCU_HEAD(&entry->rcu);
|
||||
entry->secid = secid;
|
||||
|
||||
spin_lock(&netlbl_unlhsh_lock);
|
||||
@@ -410,7 +408,6 @@ static struct netlbl_unlhsh_iface *netlbl_unlhsh_add_iface(int ifindex)
|
||||
INIT_LIST_HEAD(&iface->addr4_list);
|
||||
INIT_LIST_HEAD(&iface->addr6_list);
|
||||
iface->valid = 1;
|
||||
INIT_RCU_HEAD(&iface->rcu);
|
||||
|
||||
spin_lock(&netlbl_unlhsh_lock);
|
||||
if (ifindex > 0) {
|
||||
|
Reference in New Issue
Block a user