summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2008-03-29 17:33:29 +0000
committermarcel <marcel@FreeBSD.org>2008-03-29 17:33:29 +0000
commit5b21e055a61b2f8539ccb8df474ef68ad76e0860 (patch)
tree29c3af8cc6bd8a2ead7c0eafa2bae02401c29f5f
parentff9d959b80040c1b6f625d31c27260c10479be5d (diff)
downloadFreeBSD-src-5b21e055a61b2f8539ccb8df474ef68ad76e0860.zip
FreeBSD-src-5b21e055a61b2f8539ccb8df474ef68ad76e0860.tar.gz
Change the order from SI_ORDER_FIRST to SI_ORDER_ANY (within
SI_SUB_DRIVERS) to avoid loading schemes before all the GEOM classes have been loaded and initialized. Otherwise we may end up using mutexes that haven't been initialized (due to g_retaste() posting an event).
-rw-r--r--sys/geom/part/g_part.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/part/g_part.h b/sys/geom/part/g_part.h
index 1ca18d3..4ec54f5 100644
--- a/sys/geom/part/g_part.h
+++ b/sys/geom/part/g_part.h
@@ -164,6 +164,6 @@ int g_part_modevent(module_t, int, struct g_part_scheme *);
name##_modevent, \
&name##_scheme \
}; \
- DECLARE_MODULE(name, name##_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST)
+ DECLARE_MODULE(name, name##_mod, SI_SUB_DRIVERS, SI_ORDER_ANY)
#endif /* !_GEOM_PART_H_ */
OpenPOWER on IntegriCloud