Re: [PATCH] net, lib/once: Remove {net_}get_random_once_wait macro
From: Jakub Kicinski
Date: Sun Jun 19 2022 - 18:59:19 EST
On Sun, 19 Jun 2022 15:46:41 +0800 wuchi wrote:
> DO_ONCE(func, ...) will call func with spinlock which acquired by
> spin_lock_irqsave in __do_once_start. But the get_random_once_wait
> will sleep in get_random_bytes_wait -> wait_for_random_bytes.
>
> Fortunately, there is no place to use {net_}get_random_once_wait,
> so we could remove them simply.
>
> Signed-off-by: wuchi <wuchi.zero@xxxxxxxxx>
Yeah, sure, if it builds:
Acked-by: Jakub Kicinski <kuba@xxxxxxxxxx>
If Andrew doesn't pick it you please repost CCing netdev.