Use a blocking malloc() to initialize the dummynet taskq.

Reviewed by:	luigi
This commit is contained in:
jhb 2011-01-13 17:02:39 +00:00
parent cfd16f7125
commit 9e010db002

View File

@ -2157,7 +2157,7 @@ ip_dn_init(void)
DN_LOCK_INIT();
TASK_INIT(&dn_task, 0, dummynet_task, curvnet);
dn_tq = taskqueue_create("dummynet", M_NOWAIT,
dn_tq = taskqueue_create("dummynet", M_WAITOK,
taskqueue_thread_enqueue, &dn_tq);
taskqueue_start_threads(&dn_tq, 1, PI_NET, "dummynet");