git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee1de40
)
random: forget lock in lockless accounting
author
Greg Price
<price@MIT.EDU>
Sat, 30 Nov 2013 01:09:37 +0000
(20:09 -0500)
committer
Theodore Ts'o
<tytso@mit.edu>
Thu, 20 Mar 2014 02:18:51 +0000
(22:18 -0400)
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>
drivers/char/random.c
patch
|
blob
|
history
diff --cc
drivers/char/random.c
Simple merge