]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
The flow-table function flowtable_route_flush() may be called
authorQing Li <qingli@FreeBSD.org>
Tue, 20 Oct 2009 21:27:03 +0000 (21:27 +0000)
committerQing Li <qingli@FreeBSD.org>
Tue, 20 Oct 2009 21:27:03 +0000 (21:27 +0000)
commit48d0c039cba343d3c9e5d4a4740c6cededbf29c3
treeb85f15f4627414cbce376c8e2d0f6f5348b4feae
parent2cf3d848b66655f62d61dac18b3f182de7921fcb
The flow-table function flowtable_route_flush() may be called
during system initialization time. Since the flow-table is
designed to maintain per CPU flow cache, the existing code
did not check whether "smp_started" is true before calling
sched_bind() and sched_unbind(), which triggers a page fault.

Reviewed by: jeff
MFC after: immediately
sys/net/flowtable.c