mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
bpf: Adjust return value for queue destruction in rqspinlock
Return -ETIMEDOUT whenever non-head waiters are signalled by head, and fix
oversight in commit 7bd6e5ce5b ("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>
This commit is contained in:
committed by
Alexei Starovoitov
parent
f8c67d8550
commit
3249e8a17e
@@ -537,7 +537,7 @@ queue:
|
||||
|
||||
val = arch_mcs_spin_lock_contended(&node->locked);
|
||||
if (val == RES_TIMEOUT_VAL) {
|
||||
ret = -EDEADLK;
|
||||
ret = -ETIMEDOUT;
|
||||
goto waitq_timeout;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user