Skip to content
Commit 91fcb532 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

random: always update the entropy pool under the spinlock

Instead of using lockless techniques introduced in commit
902c098a

, use spin_trylock to try to grab entropy pool's lock.  If
we can't get the lock, then just try again on the next interrupt.

Based on discussions with George Spelvin.

Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
Cc: George Spelvin <linux@horizon.com>
parent 1795cd9b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment