mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
selinux: remove all rcu head initializations
Remove all rcu head inits. We don't care about the RCU head state before passing it to call_rcu() anyway. Only leave the "on_stack" variants so debugobjects can keep track of objects on stack. Signed-off-by: Mathieu Desnoyers <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]> Cc: Stephen Smalley <[email protected]> Reviewed-by: James Morris <[email protected]> Cc: Eric Paris <[email protected]> Signed-off-by: James Morris <[email protected]>
This commit is contained in:
parent
9fe6206f40
commit
babcd37821
2 changed files with 0 additions and 3 deletions
|
|
@ -288,7 +288,6 @@ static struct avc_node *avc_alloc_node(void)
|
|||
if (!node)
|
||||
goto out;
|
||||
|
||||
INIT_RCU_HEAD(&node->rhead);
|
||||
INIT_HLIST_NODE(&node->list);
|
||||
avc_cache_stats_incr(allocations);
|
||||
|
||||
|
|
|
|||
|
|
@ -183,8 +183,6 @@ static void sel_netnode_insert(struct sel_netnode *node)
|
|||
BUG();
|
||||
}
|
||||
|
||||
INIT_RCU_HEAD(&node->rcu);
|
||||
|
||||
/* we need to impose a limit on the growth of the hash table so check
|
||||
* this bucket to make sure it is within the specified bounds */
|
||||
list_add_rcu(&node->list, &sel_netnode_hash[idx].list);
|
||||
|
|
|
|||
Loading…
Reference in a new issue