Commit 82e38a50 authored by Alexei Starovoitov's avatar Alexei Starovoitov
Browse files

selftests/bpf: Fix wq test.



The wq test was missing destroy(skel) part which was causing bpf progs to stay
loaded. That was causing test_progs to complain with
"Failed to unload bpf_testmod.ko from kernel: -11" message, but adding
destroy() wasn't enough, since wq callback may be delayed, so loop on unload of
bpf_testmod if errno is EAGAIN.

Acked-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Fixes: 8290dba5 ("selftests/bpf: wq: add bpf_wq_start() checks")
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 5305b378
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment