commit | 91fcb532efe366d79b93a3c8c368b9dca6176a55 | [log] [tgz] |
---|---|---|
author | Theodore Ts'o <tytso@mit.edu> | Tue Jun 10 22:46:37 2014 -0400 |
committer | Theodore Ts'o <tytso@mit.edu> | Tue Jul 15 04:49:39 2014 -0400 |
tree | 3d2f571973e695ab5334abbaadbcad3a64152188 | |
parent | 1795cd9b3a91d4b5473c97f491d63892442212ab [diff] |
random: always update the entropy pool under the spinlock Instead of using lockless techniques introduced in commit 902c098a3663, 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: Theodore Ts'o <tytso@mit.edu> Cc: George Spelvin <linux@horizon.com>