Re: [PATCH 2/2] hex: make hash_to_hex_algop() and friends thread-safe
- From
Christian Couder <christian.couder@gmail.com>
- Date
- Jun 26, 2020, 06:02 UTC
- Message-ID
- <CAP8UFD1yE8HRxEdw72T70Jw0Eb4RWDze0pD6sNUfF4SKMYuyWw@mail.gmail.com>
- In-Reply-To
- <0104cd9c763aee220a2df357834c79b10695ee35.1593115455.git.matheus.bernardino@usp.br>
On Fri, Jun 26, 2020 at 1:35 AM Matheus Tavares <matheus.bernardino@usp.br> wrote:
[...]
> Although these functions don't seem to be causing problems out there for > now (at least not reported), making them thread-safe makes the codebase > more robust against race conditions. We can easily do that replicating
Maybe s/that replicating/that by replicating/.
> the static buffer in each thread's local storage. > > Original-patch-by: Fredrik Kuivinen <frekui@gmail.com>
If Fredrik gave his "Signed-off-by:", maybe it's better to keep it too.
> Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br> > ---