Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Oct 2019 14:27:04 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org
Subject:   svn commit: r353046 - releng/12.1/sys/dev/fdt
Message-ID:  <201910031427.x93ER4e4039966@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevans
Date: Thu Oct  3 14:27:04 2019
New Revision: 353046
URL: https://svnweb.freebsd.org/changeset/base/353046

Log:
  MFS r353041: fdt_slicer: bump to SI_ORDER_THIRD following r347183
  
  r347183 bumped GEOM classes to SI_ORDER_SECOND to resolve a race between
  them and the initialization of devsoftc.mtx in devinit, but missed this
  dependency on g_flashmap that may now lose the race against GEOM
  classes/g_init.
  
  There's a great comment that describes the situation that has also been
  updated with the new ordering of GEOM classes.
  
  Approved by:	re (kib)

Modified:
  releng/12.1/sys/dev/fdt/fdt_slicer.c
Directory Properties:
  releng/12.1/   (props changed)

Modified: releng/12.1/sys/dev/fdt/fdt_slicer.c
==============================================================================
--- releng/12.1/sys/dev/fdt/fdt_slicer.c	Thu Oct  3 13:30:48 2019	(r353045)
+++ releng/12.1/sys/dev/fdt/fdt_slicer.c	Thu Oct  3 14:27:04 2019	(r353046)
@@ -159,12 +159,12 @@ fdt_slicer_cleanup(void)
 }
 
 /*
- * Must be initialized after GEOM classes (SI_SUB_DRIVERS/SI_ORDER_FIRST),
+ * Must be initialized after GEOM classes (SI_SUB_DRIVERS/SI_ORDER_SECOND),
  * i. e. after g_init() is called, due to the use of the GEOM topology_lock
  * in flash_register_slicer().  However, must be before SI_SUB_CONFIGURE.
  */
-SYSINIT(fdt_slicer, SI_SUB_DRIVERS, SI_ORDER_SECOND, fdt_slicer_init, NULL);
-SYSUNINIT(fdt_slicer, SI_SUB_DRIVERS, SI_ORDER_SECOND, fdt_slicer_cleanup, NULL);
+SYSINIT(fdt_slicer, SI_SUB_DRIVERS, SI_ORDER_THIRD, fdt_slicer_init, NULL);
+SYSUNINIT(fdt_slicer, SI_SUB_DRIVERS, SI_ORDER_THIRD, fdt_slicer_cleanup, NULL);
 
 static int
 mod_handler(module_t mod, int type, void *data)
@@ -181,5 +181,5 @@ static moduledata_t fdt_slicer_mod = {
 	"fdt_slicer", mod_handler, NULL
 };
 
-DECLARE_MODULE(fdt_slicer, fdt_slicer_mod, SI_SUB_DRIVERS, SI_ORDER_SECOND);
+DECLARE_MODULE(fdt_slicer, fdt_slicer_mod, SI_SUB_DRIVERS, SI_ORDER_THIRD);
 MODULE_VERSION(fdt_slicer, 1);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910031427.x93ER4e4039966>