Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
random: forget lock in lockless accounting
The only mutable data accessed here is ->entropy_count, but since 10b3a32 ("random: fix accounting race condition") we use cmpxchg to protect our accesses to ->entropy_count here. Drop the use of the lock. Cc: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Greg Price <price@mit.edu> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
- Loading branch information