]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
page_pool: always add GFP_NOWARN for ATOMIC allocations
authorJakub Kicinski <kuba@kernel.org>
Fri, 12 Sep 2025 16:17:03 +0000 (09:17 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 16 Sep 2025 01:13:49 +0000 (18:13 -0700)
commitf3b52167a0cb23b27414452fbc1278da2ee884fc
treea6eaf9ed8674880e345f9262f79b2abd6d21c628
parent3a0ac202534bcd397e6fd744b6d1038d372c5b5e
page_pool: always add GFP_NOWARN for ATOMIC allocations

Driver authors often forget to add GFP_NOWARN for page allocation
from the datapath. This is annoying to users as OOMs are a fact
of life, and we pretty much expect network Rx to hit page allocation
failures during OOM. Make page pool add GFP_NOWARN for ATOMIC allocations
by default.

Reviewed-by: Mina Almasry <almasrymina@google.com>
Link: https://patch.msgid.link/20250912161703.361272-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/page_pool.c