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).
This commit is contained in:
parent
a1af0d70da
commit
e0fbffe617
@ -164,6 +164,6 @@ int g_part_modevent(module_t, int, struct g_part_scheme *);
|
|||||||
name##_modevent, \
|
name##_modevent, \
|
||||||
&name##_scheme \
|
&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_ */
|
#endif /* !_GEOM_PART_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user