[PATCH] [v2] test_rhashtable: remove semaphore usage

2018-12-16 Thread Arnd Bergmann
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 eli

Re: [PATCH] [v2] test_rhashtable: remove semaphore usage

2018-12-17 Thread Herbert Xu
On Sun, Dec 16, 2018 at 08:48:21PM +0100, Arnd Bergmann wrote: > 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

Re: [PATCH] [v2] test_rhashtable: remove semaphore usage

2018-12-18 Thread David Miller
From: Arnd Bergmann Date: Sun, 16 Dec 2018 20:48:21 +0100 > 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 an

Re: [PATCH] [v2] test_rhashtable: remove semaphore usage

2019-01-02 Thread Geert Uytterhoeven
Hi Arnd, On Sun, Dec 16, 2018 at 8:50 PM Arnd Bergmann wrote: > 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 waitqueu