> Date: Mon, 19 Oct 2020 10:00:49 +0200
> From: Martin Pieuchot <[email protected]>
>
> uao_init() is called from uvm_km_init() which itself is called by
> uvm_init(). None of the *init() functions in UVM have a guard, so be
> coherent and remove this one.
>
> ok?
Yes, that seems redundant.
ok kettenis@
> Index: uvm/uvm_aobj.c
> ===================================================================
> RCS file: /cvs/src/sys/uvm/uvm_aobj.c,v
> retrieving revision 1.87
> diff -u -p -r1.87 uvm_aobj.c
> --- uvm/uvm_aobj.c 22 Sep 2020 14:31:08 -0000 1.87
> +++ uvm/uvm_aobj.c 13 Oct 2020 09:25:20 -0000
> @@ -788,12 +788,6 @@ uao_create(vsize_t size, int flags)
> void
> uao_init(void)
> {
> - static int uao_initialized;
> -
> - if (uao_initialized)
> - return;
> - uao_initialized = TRUE;
> -
> /*
> * NOTE: Pages for this pool must not come from a pageable
> * kernel map!
>
>