[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y1NuKJ7iIey450tn@gondor.apana.org.au>
Date: Sat, 22 Oct 2022 12:14:32 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Rolf Eike Beer <eike-kernel@...tec.de>
Cc: Thomas Graf <tgraf@...g.ch>, Florian Westphal <fw@...len.de>,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
"Jason A. Donenfeld" <Jason@...c4.com>
Subject: Re: [PATCH][Resend] rhashtable: make test actually random
On Fri, Oct 21, 2022 at 03:47:03PM +0200, Rolf Eike Beer wrote:
> The "random rhlist add/delete operations" actually wasn't very random, as all
> cases tested the same bit. Since the later parts of this loop depend on the
> first case execute this unconditionally, and then test on different bits for the
> remaining tests. While at it only request as much random bits as are actually
> used.
>
> Signed-off-by: Rolf Eike Beer <eike-kernel@...tec.de>
> ---
> lib/test_rhashtable.c | 58 ++++++++++++++++---------------------------
> 1 file changed, 22 insertions(+), 36 deletions(-)
Acked-by: Herbert Xu <herbert@...dor.apana.org.au>
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists