Commit babcd37821fba57048b30151969d28303f2a8b6b

Authored by Paul E. McKenney
Committed by James Morris
1 parent 9fe6206f40

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 <mathieu.desnoyers@efficios.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Stephen Smalley <sds@tycho.nsa.gov>
Reviewed-by: James Morris <jmorris@namei.org>
Cc: Eric Paris <eparis@parisplace.org>
Signed-off-by: James Morris <jmorris@namei.org>

Showing 2 changed files with 0 additions and 3 deletions Side-by-side Diff

security/selinux/avc.c
... ... @@ -288,7 +288,6 @@
288 288 if (!node)
289 289 goto out;
290 290  
291   - INIT_RCU_HEAD(&node->rhead);
292 291 INIT_HLIST_NODE(&node->list);
293 292 avc_cache_stats_incr(allocations);
294 293  
security/selinux/netnode.c
... ... @@ -183,8 +183,6 @@
183 183 BUG();
184 184 }
185 185  
186   - INIT_RCU_HEAD(&node->rcu);
187   -
188 186 /* we need to impose a limit on the growth of the hash table so check
189 187 * this bucket to make sure it is within the specified bounds */
190 188 list_add_rcu(&node->list, &sel_netnode_hash[idx].list);