diff options
author | Jakub Kicinski <kuba@kernel.org> | 2024-04-11 11:32:22 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-04-15 10:26:35 +0100 |
commit | 3db3b62955cd6d73afde05a17d7e8e106695c3b9 (patch) | |
tree | 83a632449cb2285047895b381941a77ec4b362ad /lib/bug.c | |
parent | f1e197a665c2148ebc25fe09c53689e60afea195 (diff) |
net: dev_addr_lists: move locking out of init/exit in kunit
We lock and unlock rtnl in init/exit for convenience,
but it started causing problems if the exit is handled
by a different thread. To avoid having to futz with
disabling locking assertions move the locking into
the test cases. We don't use ASSERTs so it should
be safe.
============= dev-addr-list-test (6 subtests) ==============
[PASSED] dev_addr_test_basic
[PASSED] dev_addr_test_sync_one
[PASSED] dev_addr_test_add_del
[PASSED] dev_addr_test_del_main
[PASSED] dev_addr_test_add_set
[PASSED] dev_addr_test_add_excl
=============== [PASSED] dev-addr-list-test ================
Link: https://lore.kernel.org/all/20240403131936.787234-7-linux@roeck-us.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/bug.c')
0 files changed, 0 insertions, 0 deletions