netfilter: don't use INIT_RCU_HEAD()
authorAlexey Dobriyan <adobriyan@gmail.com>
Fri, 12 Feb 2010 05:25:36 +0000 (06:25 +0100)
committerPatrick McHardy <kaber@trash.net>
Fri, 12 Feb 2010 05:25:36 +0000 (06:25 +0100)
call_rcu() will unconditionally reinitialize RCU head anyway.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/nf_conntrack_expect.c
net/netfilter/nf_conntrack_extend.c
net/netfilter/nfnetlink_queue.c

index 33b85f834c063d82dcca75b9439367b971415e1e..6182fb1b55de706b63d45befac0e258436f5558f 100644 (file)
@@ -232,7 +232,6 @@ struct nf_conntrack_expect *nf_ct_expect_alloc(struct nf_conn *me)
 
        new->master = me;
        atomic_set(&new->use, 1);
-       INIT_RCU_HEAD(&new->rcu);
        return new;
 }
 EXPORT_SYMBOL_GPL(nf_ct_expect_alloc);
index fef95be334bd8b834335afe8bbef0cdb9f62dc37..fdc8fb4ae10f0346424b112752581068ccdbc340 100644 (file)
@@ -59,7 +59,6 @@ nf_ct_ext_create(struct nf_ct_ext **ext, enum nf_ct_ext_id id, gfp_t gfp)
        if (!*ext)
                return NULL;
 
-       INIT_RCU_HEAD(&(*ext)->rcu);
        (*ext)->offset[id] = off;
        (*ext)->len = len;
 
index 90cf36decea3e9e8db3ccd0a51eebdcd2edd99c8..7ba4abc405c9d342ce7cd4bd76bd294e554ae6dc 100644 (file)
@@ -112,7 +112,6 @@ instance_create(u_int16_t queue_num, int pid)
        inst->copy_mode = NFQNL_COPY_NONE;
        spin_lock_init(&inst->lock);
        INIT_LIST_HEAD(&inst->queue_list);
-       INIT_RCU_HEAD(&inst->rcu);
 
        if (!try_module_get(THIS_MODULE)) {
                err = -EAGAIN;