]> nv-tegra.nvidia Code Review - linux-3.10.git/blobdiff - net/netfilter/nf_conntrack_h323_main.c
[NETFILTER]: nf_conntrack: switch rwlock to spinlock
[linux-3.10.git] / net / netfilter / nf_conntrack_h323_main.c
index 872c1aa3124c2945fae2d8a5be2672d1242a447e..02563050cc3a8ac54c6873c92a716347ff305e4d 100644 (file)
@@ -1415,7 +1415,7 @@ static int process_rcf(struct sk_buff *skb, struct nf_conn *ct,
                nf_ct_refresh(ct, skb, info->timeout * HZ);
 
                /* Set expect timeout */
-               read_lock_bh(&nf_conntrack_lock);
+               spin_lock_bh(&nf_conntrack_lock);
                exp = find_expect(ct, &ct->tuplehash[dir].tuple.dst.u3,
                                  info->sig_port[!dir]);
                if (exp) {
@@ -1425,7 +1425,7 @@ static int process_rcf(struct sk_buff *skb, struct nf_conn *ct,
                        NF_CT_DUMP_TUPLE(&exp->tuple);
                        set_expect_timeout(exp, info->timeout);
                }
-               read_unlock_bh(&nf_conntrack_lock);
+               spin_unlock_bh(&nf_conntrack_lock);
        }
 
        return 0;