Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Feb 2011 09:48:23 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r218705 - projects/graid/head/sys/geom/raid
Message-ID:  <201102150948.p1F9mN37025119@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 &&



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