PERFORCE change 163017 for review
Scott Long
scottl at FreeBSD.org
Fri May 29 14:16:43 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=163017
Change 163017 by scottl at scottl-y1 on 2009/05/29 14:15:56
Take care of some simple devclasses locking cases.
Affected files ...
.. //depot/projects/scottl-camlock/src/sys/kern/subr_bus.c#21 edit
Differences ...
==== //depot/projects/scottl-camlock/src/sys/kern/subr_bus.c#21 (text+ko) ====
@@ -4188,9 +4188,11 @@
devclass_t dc;
printf("Short listing of devclasses, drivers & devices:\n");
+ mtx_lock(&devclasses_mtx);
TAILQ_FOREACH(dc, &devclasses, link) {
print_devclass_short(dc, 0);
}
+ mtx_unlock(&devclasses_mtx);
}
void
@@ -4199,9 +4201,11 @@
devclass_t dc;
printf("Full listing of devclasses, drivers & devices:\n");
+ mtx_lock(&devclasses_mtx);
TAILQ_FOREACH(dc, &devclasses, link) {
print_devclass(dc, 0);
}
+ mtx_unlock(&devclasses_mtx);
}
#endif
More information about the p4-projects
mailing list