Skip to content

Commit 4d3dcbf

Browse files
Saket Kumar BhaskarKernel Patches Daemon
authored andcommitted
selftests/bpf: Fix htab_update/reenter_update selftest failure
Since commit 31158ad ("rqspinlock: Add deadlock detection and recovery") the updated path on re-entrancy now reports deadlock via -EDEADLK instead of the previous -EBUSY. The selftest is updated to align with expected errno with the kernel’s current behavior. Signed-off-by: Saket Kumar Bhaskar <[email protected]>
1 parent 828eff8 commit 4d3dcbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/bpf/prog_tests/htab_update.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ static void test_reenter_update(void)
4040
if (!ASSERT_OK(err, "add element"))
4141
goto out;
4242

43-
ASSERT_EQ(skel->bss->update_err, -EBUSY, "no reentrancy");
43+
ASSERT_EQ(skel->bss->update_err, -EDEADLK, "no reentrancy");
4444
out:
4545
htab_update__destroy(skel);
4646
}

0 commit comments

Comments
 (0)