]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
Revert "netfilter: x_tables: Update remaining dereference to RCU"
authorMark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
Mon, 8 Mar 2021 01:24:11 +0000 (14:24 +1300)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 8 Apr 2021 20:42:40 +0000 (15:42 -0500)
commit0851e72105b01e31740cdda1eb072d0f287405a0
tree79094ddea23d34955499068c9da997390f12bfac
parent6ccc96b2e24096675ba6fa9d7cc39e0c1936550e
Revert "netfilter: x_tables: Update remaining dereference to RCU"

BugLink: https://bugs.launchpad.net/bugs/1922601
[ Upstream commit abe7034b9a8d57737e80cc16d60ed3666990bdbf ]

This reverts commit 443d6e86f821a165fae3fc3fc13086d27ac140b1.

This (and the following) patch basically re-implemented the RCU
mechanisms of patch 784544739a25. That patch was replaced because of the
performance problems that it created when replacing tables. Now, we have
the same issue: the call to synchronize_rcu() makes replacing tables
slower by as much as an order of magnitude.

Revert these patches and fix the issue in a different way.

Signed-off-by: Mark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
net/ipv4/netfilter/arp_tables.c
net/ipv4/netfilter/ip_tables.c
net/ipv6/netfilter/ip6_tables.c