Skip to content

Commit 78d66c1

Browse files
kkdwvdKernel Patches Daemon
authored andcommitted
rqspinlock: Adjust return value for queue destruction
Return -ETIMEDOUT whenever non-head waiters are signalled by head, and fix oversight in commit 7bd6e5c ("rqspinlock: Disable queue destruction for deadlocks"). We no longer signal on deadlocks. Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]>
1 parent 28726e6 commit 78d66c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/bpf/rqspinlock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ int __lockfunc resilient_queued_spin_lock_slowpath(rqspinlock_t *lock, u32 val)
540540

541541
val = arch_mcs_spin_lock_contended(&node->locked);
542542
if (val == RES_TIMEOUT_VAL) {
543-
ret = -EDEADLK;
543+
ret = -ETIMEDOUT;
544544
goto waitq_timeout;
545545
}
546546

0 commit comments

Comments
 (0)