Re: [PATCH nf-next] netfilter: conntrack: remove the central spinlock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2013-05-09 at 05:43 +0000, Cong Wang wrote:
> On Thu, 09 May 2013 at 03:04 GMT, Eric Dumazet <eric.dumazet@xxxxxxxxx> wrote:
> >  
> > +#if 0
> > +	for (i = 0; i < ARRAY_SIZE(nf_conntrack_locks); i++)
> > +		arch_spin_lock_init(&nf_conntrack_locks[i]);
> > +#endif
> > +
> 
> Is this intentional?

What do you think ?

Apparently arch_spin_lock_init() does not exist (but for ia64)

kernel/lglock.c simply relies on storage being cleared.

nf_conntrack_locks[] being cleared, we do not have to init it.

But I do not really like this.


--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux