From: Changli Gao Date: Tue, 18 Jan 2011 14:08:13 +0000 (+0100) Subject: netfilter: nf_conntrack: remove an atomic bit operation X-Git-Tag: v3.0~1578^2~510^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45eec34195853e918518231dcefaca1ea4ebacfc;p=platform%2Fkernel%2Flinux-amlogic.git netfilter: nf_conntrack: remove an atomic bit operation As this ct won't be seen by the others, we don't need to set the IPS_CONFIRMED_BIT in atomic way. Signed-off-by: Changli Gao Cc: Tim Gardner Cc: Eric Dumazet Signed-off-by: Patrick McHardy --- diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c index dc2ff2c..f47ac67 100644 --- a/net/netfilter/nf_conntrack_core.c +++ b/net/netfilter/nf_conntrack_core.c @@ -486,7 +486,7 @@ __nf_conntrack_confirm(struct sk_buff *skb) ct->timeout.expires += jiffies; add_timer(&ct->timeout); atomic_inc(&ct->ct_general.use); - set_bit(IPS_CONFIRMED_BIT, &ct->status); + ct->status |= IPS_CONFIRMED; /* Since the lookup is lockless, hash insertion must be done after * starting the timer and setting the CONFIRMED bit. The RCU barriers