commit | a58aa4edc6d2e779894b1fa95a2f4de157ff3b3b | [log] [tgz] |
---|---|---|
author | Greg Price <price@MIT.EDU> | Fri Nov 29 20:09:37 2013 -0500 |
committer | Theodore Ts'o <tytso@mit.edu> | Wed Mar 19 22:18:51 2014 -0400 |
tree | 9ae4c66ee56c768cdc6370a879154acbccb10133 | |
parent | ee1de406ba6eb1e01f143fe3351e70cc772cc63e [diff] |
random: forget lock in lockless accounting The only mutable data accessed here is ->entropy_count, but since 10b3a32d2 ("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>