[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200131220917.GL795@breakpoint.cc>
Date: Fri, 31 Jan 2020 23:09:17 +0100
From: Florian Westphal <fw@...len.de>
To: Cong Wang <xiyou.wangcong@...il.com>
Cc: netdev@...r.kernel.org, netfilter-devel@...r.kernel.org,
syzbot+adf6c6c2be1c3a718121@...kaller.appspotmail.com,
Pablo Neira Ayuso <pablo@...filter.org>,
Jozsef Kadlecsik <kadlec@...filter.org>,
Florian Westphal <fw@...len.de>
Subject: Re: [Patch nf 2/3] xt_hashlimit: reduce hashlimit_mutex scope for
htable_put()
Cong Wang <xiyou.wangcong@...il.com> wrote:
> It is unnecessary to hold hashlimit_mutex for htable_destroy()
> as it is already removed from the global hashtable and its
> refcount is already zero.
>
> Also, switch hinfo->use to refcount_t so that we don't have
> to hold the mutex until it reaches zero in htable_put().
LGTM, thanks!
Acked-by: Florian Westphal <fw@...len.de>
Powered by blists - more mailing lists