spl-generic: bring up kstats subsystem before taskq

For spl-taskq to use the kstats infrastructure, it has to be available
first.

Sponsored-by: Klara, Inc.
Sponsored-by: Syneto
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
This commit is contained in:
Rob Norris 2024-05-07 10:18:22 +10:00
parent 77a797a382
commit 4ae4e26474
1 changed files with 11 additions and 11 deletions

View File

@ -868,16 +868,16 @@ spl_init(void)
if ((rc = spl_tsd_init()))
goto out2;
if ((rc = spl_taskq_init()))
if ((rc = spl_proc_init()))
goto out3;
if ((rc = spl_kmem_cache_init()))
if ((rc = spl_kstat_init()))
goto out4;
if ((rc = spl_proc_init()))
if ((rc = spl_taskq_init()))
goto out5;
if ((rc = spl_kstat_init()))
if ((rc = spl_kmem_cache_init()))
goto out6;
if ((rc = spl_zlib_init()))
@ -891,13 +891,13 @@ spl_init(void)
out8:
spl_zlib_fini();
out7:
spl_kstat_fini();
out6:
spl_proc_fini();
out5:
spl_kmem_cache_fini();
out4:
out6:
spl_taskq_fini();
out5:
spl_kstat_fini();
out4:
spl_proc_fini();
out3:
spl_tsd_fini();
out2:
@ -913,10 +913,10 @@ spl_fini(void)
{
spl_zone_fini();
spl_zlib_fini();
spl_kstat_fini();
spl_proc_fini();
spl_kmem_cache_fini();
spl_taskq_fini();
spl_kstat_fini();
spl_proc_fini();
spl_tsd_fini();
spl_kvmem_fini();
spl_random_fini();