random: Wake up all getrandom(2) callers when pool is ready

2015-05-21 Thread Herbert Xu
On Thu, May 21, 2015 at 09:55:17AM +0200, Stephan Mueller wrote: So, I will create a 2nd wait queue in random.c for uninterruptible waits, change the get_blocking_random_bytes back to void and use wait_event to wait for the initialization. Hold your horses. You don't need a second queue,

Re: random: Wake up all getrandom(2) callers when pool is ready

2015-05-21 Thread Stephan Mueller
Am Donnerstag, 21. Mai 2015, 16:19:54 schrieb Herbert Xu: Hi Herbert, On Thu, May 21, 2015 at 09:55:17AM +0200, Stephan Mueller wrote: So, I will create a 2nd wait queue in random.c for uninterruptible waits, change the get_blocking_random_bytes back to void and use wait_event to wait for

Re: random: Wake up all getrandom(2) callers when pool is ready

2015-05-21 Thread Herbert Xu
On Thu, May 21, 2015 at 03:17:39PM -0400, Theodore Ts'o wrote: Yes, this should definitely be wake_up_all() Thanks for the confirmation. Can I push this patch through the cryptodev tree since Stephan's work is probably going to depend on it? Cheers, -- Email: Herbert Xu

Re: random: Wake up all getrandom(2) callers when pool is ready

2015-05-21 Thread Theodore Ts'o
On Thu, May 21, 2015 at 04:19:54PM +0800, Herbert Xu wrote: On Thu, May 21, 2015 at 09:55:17AM +0200, Stephan Mueller wrote: So, I will create a 2nd wait queue in random.c for uninterruptible waits, change the get_blocking_random_bytes back to void and use wait_event to wait for the