Home
last modified time | relevance | path

Searched hist:a3f9e8910e1584d7725ef7d5ac870920d42d0bb4 (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/char/
H A Drandom.cdiff a3f9e8910e1584d7725ef7d5ac870920d42d0bb4 Tue Feb 22 14:01:57 CET 2022 Jason A. Donenfeld <Jason@zx2c4.com> random: only wake up writers after zap if threshold was passed

The only time that we need to wake up /dev/random writers on
RNDCLEARPOOL/RNDZAPPOOL is when we're changing from a value that is
greater than or equal to POOL_MIN_BITS to zero, because if we're
changing from below POOL_MIN_BITS to zero, the writers are already
unblocked.

Cc: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>