fixup! Make client resolver tasks pooled and CPU-bound
This commit is contained in:
+1
-1
@@ -2236,7 +2236,7 @@ get_clienttask(ns_clientmgr_t *manager, isc_task_t **taskp) {
|
||||
tid = isc_random_uniform(manager->ncpus);
|
||||
}
|
||||
|
||||
int rand = isc_random_uniform(CLIENT_NMTASKS_PERCPU);
|
||||
int rand = isc_random_uniform(CLIENT_NTASKS_PERCPU);
|
||||
int nexttask = (rand * manager->ncpus) + tid;
|
||||
isc_task_attach(manager->taskpool[nexttask], taskp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user