Re: random: Wake up writers when random pools are zapped

From: Theodore Y. Ts'o
Date: Sat May 19 2018 - 16:59:46 EST


On Fri, May 18, 2018 at 02:57:36PM +0800, Herbert Xu wrote:
> As it is when the pool is zapped with RNDCLEARPOOL writers are
> not woken up and therefore the pool may remain in the empty state
> indefinitely.
>
> This patch wakes them up unless the write threshold is set to zero.
>
> Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>

Thanks, applied.

Out of curiosity, how/when were you using RNDCLEARPOOL/RNDZAPENTCNT?
Hopefully it was only testing hw_random drivers, or some such?

- Ted