svn commit: r198568 - in releng/8.0/sys: . amd64/include/xen
cddl/contrib/opensolaris contrib/dev/acpica contrib/pf
dev/xen/xenpci net
Qing Li
qingli at FreeBSD.org
Wed Oct 28 22:00:50 UTC 2009
Author: qingli
Date: Wed Oct 28 22:00:49 2009
New Revision: 198568
URL: http://svn.freebsd.org/changeset/base/198568
Log:
MFC r198353
Verify "smp_started" is true before calling
sched_bind() and sched_unbind().
Reviewed by: kmacy
Approved by: re
Modified:
releng/8.0/sys/ (props changed)
releng/8.0/sys/amd64/include/xen/ (props changed)
releng/8.0/sys/cddl/contrib/opensolaris/ (props changed)
releng/8.0/sys/contrib/dev/acpica/ (props changed)
releng/8.0/sys/contrib/pf/ (props changed)
releng/8.0/sys/dev/xen/xenpci/ (props changed)
releng/8.0/sys/net/flowtable.c
Modified: releng/8.0/sys/net/flowtable.c
==============================================================================
--- releng/8.0/sys/net/flowtable.c Wed Oct 28 21:45:25 2009 (r198567)
+++ releng/8.0/sys/net/flowtable.c Wed Oct 28 22:00:49 2009 (r198568)
@@ -963,15 +963,19 @@ flowtable_clean_vnet(void)
if (CPU_ABSENT(i))
continue;
- thread_lock(curthread);
- sched_bind(curthread, i);
- thread_unlock(curthread);
+ if (smp_started == 1) {
+ thread_lock(curthread);
+ sched_bind(curthread, i);
+ thread_unlock(curthread);
+ }
flowtable_free_stale(ft, NULL);
- thread_lock(curthread);
- sched_unbind(curthread);
- thread_unlock(curthread);
+ if (smp_started == 1) {
+ thread_lock(curthread);
+ sched_unbind(curthread);
+ thread_unlock(curthread);
+ }
}
} else {
flowtable_free_stale(ft, NULL);
More information about the svn-src-all
mailing list