diff options
| author | Puranjay Mohan <puranjay@kernel.org> | 2026-08-04 06:45:56 -0700 |
|---|---|---|
| committer | Andrii Nakryiko <andrii@kernel.org> | 2026-08-05 10:44:35 -0700 |
| commit | 39f047682fe3ccc272dbebb6d1ecba8fc1e0d8b4 (patch) | |
| tree | 5d48ee5c76c7da095bd9e63f7ac8a2e2dd1b15fa /kernel/locking | |
| parent | e93347704878aa8a54b3154114d13e57e8923e27 (diff) | |
bpf: Inline bpf_iter_num_destroy() as a no-op
Once destroy() returns the stack slot is no longer tracked as iterator
state, so zeroing it is dead work. Make the kfunc a no-op and inline the
call to a single BPF_JA 0 (the fixup can't drop the instruction outright,
so emit a nop; the JITs elide it).
Suggested-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20260804134601.2305303-5-puranjay@kernel.org
Diffstat (limited to 'kernel/locking')
0 files changed, 0 insertions, 0 deletions
