svn commit: r218705 - projects/graid/head/sys/geom/raid
Alexander Motin
mav at FreeBSD.org
Tue Feb 15 09:48:23 UTC 2011
Author: mav
Date: Tue Feb 15 09:48:23 2011
New Revision: 218705
URL: http://svn.freebsd.org/changeset/base/218705
Log:
Fix modules registration order according to priorities.
Modified:
projects/graid/head/sys/geom/raid/g_raid.c
Modified: projects/graid/head/sys/geom/raid/g_raid.c
==============================================================================
--- projects/graid/head/sys/geom/raid/g_raid.c Tue Feb 15 09:30:31 2011 (r218704)
+++ projects/graid/head/sys/geom/raid/g_raid.c Tue Feb 15 09:48:23 2011 (r218705)
@@ -2229,7 +2229,7 @@ g_raid_md_modevent(module_t mod, int typ
switch (type) {
case MOD_LOAD:
c = LIST_FIRST(&g_raid_md_classes);
- if (c == NULL || c->mdc_priority < class->mdc_priority)
+ if (c == NULL || c->mdc_priority > class->mdc_priority)
LIST_INSERT_HEAD(&g_raid_md_classes, class, mdc_list);
else {
while ((nc = LIST_NEXT(c, mdc_list)) != NULL &&
@@ -2262,7 +2262,7 @@ g_raid_tr_modevent(module_t mod, int typ
switch (type) {
case MOD_LOAD:
c = LIST_FIRST(&g_raid_tr_classes);
- if (c == NULL || c->trc_priority < class->trc_priority)
+ if (c == NULL || c->trc_priority > class->trc_priority)
LIST_INSERT_HEAD(&g_raid_tr_classes, class, trc_list);
else {
while ((nc = LIST_NEXT(c, trc_list)) != NULL &&
More information about the svn-src-projects
mailing list