]> git.baikalelectronics.ru Git - kernel.git/commit
random: Wake up all getrandom(2) callers when pool is ready
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 21 May 2015 08:19:54 +0000 (16:19 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 27 May 2015 09:51:45 +0000 (17:51 +0800)
commit292626a41000096219af294b57501d25213a228f
tree01d76396141709ae0d763eb8a4689b158eb511e7
parentffed402031d3a7ce54b60c72711cdaa3142a6aef
random: Wake up all getrandom(2) callers when pool is ready

If more than one application invokes getrandom(2) before the pool
is ready, then all bar one will be stuck forever because we use
wake_up_interruptible which wakes up a single task.

This patch replaces it with wake_up_all.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/random.c