]> git.baikalelectronics.ru Git - kernel.git/commit
net: make net_get_random_once irq safe
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Wed, 23 Oct 2013 18:05:27 +0000 (20:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Oct 2013 23:03:39 +0000 (19:03 -0400)
commit90ab541f54ea3aa67495a36d82f9dad6c3513064
treead341d7bcd581cba4d38d39296692256d8a747d5
parentb6b0432969c4308114d88f85241a73e12ddb0647
net: make net_get_random_once irq safe

I initial build non irq safe version of net_get_random_once because I
would liked to have the freedom to defer even the extraction process of
get_random_bytes until the nonblocking pool is fully seeded.

I don't think this is a good idea anymore and thus this patch makes
net_get_random_once irq safe. Now someone using net_get_random_once does
not need to care from where it is called.

Cc: David S. Miller <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/net.h
net/core/utils.c