]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
selinux: remove all rcu head initializations
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 18 May 2010 19:11:25 +0000 (12:11 -0700)
committerJames Morris <jmorris@namei.org>
Mon, 2 Aug 2010 05:33:35 +0000 (15:33 +1000)
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>
security/selinux/avc.c
security/selinux/netnode.c

index 7f1a304712a9690e419e575d816e4d14e697b0b7..3662b0f15ec5d59930aaaf03555eab57be377bde 100644 (file)
@@ -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);
 
index dc92792271f1d8e59e01e9f4e9000d4f0090b2c0..65ebfe954f85395f490ce74d694d73a859b523ac 100644 (file)
@@ -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);