summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorEmil Tsalapatis <emil@etsalapatis.com>2026-10-02 10:52:13 +0000
committerAlexei Starovoitov <ast@kernel.org>2026-10-02 13:00:59 +0000
commitcbe7d2bf7355416815c878e839d03028f4724dfb (patch)
tree86582d61c9752b78de1ac8e45f7e3e986e9abd09 /include/linux/timerqueue.h
parent11de29f38a3455e5785c5fd5f38d93c413c5e822 (diff)
downloadlinux-next-cbe7d2bf7355416815c878e839d03028f4724dfb.tar.gz
linux-next-cbe7d2bf7355416815c878e839d03028f4724dfb.zip
bpf: Add sleepable argument to bpf_alloc_pages()
bpf_alloc_pages() currently decides whether it may use the blocking page allocator from the current execution context alone. Let callers further restrict that choice by passing whether their context is sleepable. Use the blocking allocator only when both the caller and runtime context allow sleeping. Add __GFP_RETRY_MAYFAIL so this path can reclaim without invoking the OOM killer when the allocation is charged to another memcg. Existing non-sleepable callers retain the no-lock allocation behavior. Signed-off-by: Emil Tsalapatis <emil@etsalapatis.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://patch.msgid.link/20261002105218.6171-3-emil@etsalapatis.com
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions