diff options
| author | Arnd Bergmann <[email protected]> | 2018-12-16 19:48:21 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-12-18 23:12:53 +0000 |
| commit | 809c67059162e7ba85c61a83ad7547b4ffbb1e6e (patch) | |
| tree | 4fbd0d0a6421a0940ef7a9bbedb1726a40e17b64 /net/tipc/node.c | |
| parent | net: phy: print stack trace in phy_error (diff) | |
| download | kernel-809c67059162e7ba85c61a83ad7547b4ffbb1e6e.tar.gz kernel-809c67059162e7ba85c61a83ad7547b4ffbb1e6e.zip | |
test_rhashtable: remove semaphore usage
This is one of only two files that initialize a semaphore to a negative
value. We don't really need the two semaphores here at all, but can do
the same thing in more conventional and more effient way, by using a
single waitqueue and an atomic thread counter.
This gets us a little bit closer to eliminating classic semaphores from
the kernel. It also fixes a corner case where we fail to continue after
one of the threads fails to start up.
An alternative would be to use a split kthread_create()+wake_up_process()
and completely eliminate the separate synchronization.
Acked-by: Phil Sutter <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
Acked-by: Herbert Xu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/node.c')
0 files changed, 0 insertions, 0 deletions
