Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Kumar Kartikeya Dwivedi and committed by
Alexei Starovoitov
3249e8a1 f8c67d85

+1 -1
+1 -1
kernel/bpf/rqspinlock.c
··· 537 537 538 538 val = arch_mcs_spin_lock_contended(&node->locked); 539 539 if (val == RES_TIMEOUT_VAL) { 540 - ret = -EDEADLK; 540 + ret = -ETIMEDOUT; 541 541 goto waitq_timeout; 542 542 } 543 543