random: locking vs. lockless accesses

2013-11-11 Thread Greg Price
Hi Ted, After reading through the RNG code, I'm curious about one aspect and I wonder if you can shed light on it. Since v3.6-rc1~26^2~30 ("random: use lockless techniques in the interrupt path"), we mix bytes into the pool without taking the lock, when inside add_interrupt_randomness(). This

random: locking vs. lockless accesses

2013-11-11 Thread Greg Price
Hi Ted, After reading through the RNG code, I'm curious about one aspect and I wonder if you can shed light on it. Since v3.6-rc1~26^2~30 (random: use lockless techniques in the interrupt path), we mix bytes into the pool without taking the lock, when inside add_interrupt_randomness(). This