]> git.baikalelectronics.ru Git - kernel.git/commit
random: always wake up entropy writers after extraction
authorJason A. Donenfeld <Jason@zx2c4.com>
Sat, 5 Feb 2022 13:00:58 +0000 (14:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 May 2022 07:29:04 +0000 (09:29 +0200)
commit2afc227061a0f60bfd9abed19277680afe091c85
treeffa980416e947ec1b2566d485fd76d64f8bef77c
parentd74c8eee36c7c0d4c2249390d1ac703c304b0977
random: always wake up entropy writers after extraction

commit 3759d99ad2a8f7ccda0385d5c29749928976f47d upstream.

Now that POOL_BITS == POOL_MIN_BITS, we must unconditionally wake up
entropy writers after every extraction. Therefore there's no point of
write_wakeup_threshold, so we can move it to the dustbin of unused
compatibility sysctls. While we're at it, we can fix a small comparison
where we were waking up after <= min rather than < min.

Cc: Theodore Ts'o <tytso@mit.edu>
Suggested-by: Eric Biggers <ebiggers@kernel.org>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/admin-guide/sysctl/kernel.rst
drivers/char/random.c