[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <slrnlal66e.3h5.xiyou.wangcong@linux-6brj.site>
Date: Fri, 13 Dec 2013 05:18:59 +0000 (UTC)
From: Cong Wang <xiyou.wangcong@...il.com>
To: netdev@...r.kernel.org
Subject: Re: [PATCH net-next v2 6/6] net_sched: convert tcf_hashinfo to
hlist and use rcu
On Fri, 13 Dec 2013 at 04:56 GMT, Cong Wang <xiyou.wangcong@...il.com> wrote:
> {
> - rwlock_init(&hf->lock);
> + int i;
> +
> + spin_lock_init(&hf->lock);
> hf->hmask = mask;
> hf->htab = kzalloc((mask + 1) * sizeof(struct tcf_common *),
> GFP_KERNEL);
> if (!hf->htab)
> return -ENOMEM;
> + for (i = 0; i < mask + 1; i++)
> + INIT_HLIST_HEAD(&hf->htab[i]);
> return 0;
Oops, a new bug was introduced during my rebase...
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists