[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180206122612.y2ztqmtcu2wfpicm@salvia>
Date: Tue, 6 Feb 2018 13:26:12 +0100
From: Pablo Neira Ayuso <pablo@...filter.org>
To: Cong Wang <xiyou.wangcong@...il.com>
Cc: netdev@...r.kernel.org, netfilter-devel@...r.kernel.org,
Eric Dumazet <eric.dumazet@...il.com>
Subject: Re: [Patch net v2] xt_RATEEST: acquire xt_rateest_mutex for hash
insert
On Mon, Feb 05, 2018 at 02:41:45PM -0800, Cong Wang wrote:
> rateest_hash is supposed to be protected by xt_rateest_mutex,
> and, as suggested by Eric, lookup and insert should be atomic,
> so we should acquire the xt_rateest_mutex once for both.
>
> So introduce a non-locking helper for internal use and keep the
> locking one for external.
Applied, thanks!
Powered by blists - more mailing lists