]> git.ipfire.org Git - thirdparty/linux.git/commit
netfilter: nf_tables: all transaction allocations can now sleep
authorFlorian Westphal <fw@strlen.de>
Fri, 22 Aug 2025 08:15:38 +0000 (10:15 +0200)
committerFlorian Westphal <fw@strlen.de>
Tue, 2 Sep 2025 13:28:17 +0000 (15:28 +0200)
commit3d95a2e016abab29ccb6f384576b2038e544a5a8
tree0ed75345c32b3c72da6a244b9ee08d91ff523a1b
parenta60a5abe19d6acd9d9ea4c1883745399fb5dc023
netfilter: nf_tables: all transaction allocations can now sleep

Now that nft_setelem_flush is not called with rcu read lock held or
disabled softinterrupts anymore this can now use GFP_KERNEL too.

This is the last atomic allocation of transaction elements, so remove
all gfp_t arguments and the wrapper function.

This makes attempts to delete large sets much more reliable, before
this was prone to transient memory allocation failures.

Signed-off-by: Florian Westphal <fw@strlen.de>
net/netfilter/nf_tables_api.c