]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf: Adjust return value for queue destruction in rqspinlock
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Tue, 11 Nov 2025 01:38:27 +0000 (01:38 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 12 Nov 2025 19:17:39 +0000 (11:17 -0800)
commit3249e8a17e62eefef096ec3818efbb91debbf9c7
tree4793eac8b4620bf09e27b89fd7f978d323d836eb
parentf8c67d8550ee69ce684c7015b2c8c63cda24bbfb
bpf: Adjust return value for queue destruction in rqspinlock

Return -ETIMEDOUT whenever non-head waiters are signalled by head, and fix
oversight in commit 7bd6e5ce5be6 ("rqspinlock: Disable queue destruction for
deadlocks"). We no longer signal on deadlocks.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Reviewed-by: Amery Hung <ameryhung@gmail.com>
Link: https://lore.kernel.org/r/20251111013827.1853484-1-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/rqspinlock.c