Commit a309984c authored by Jan Kadlec's avatar Jan Kadlec

Revert "udp: set thread affinity 1:1 to cpus"

 - Causes issues with synchronization, bug is probably elsewhere,
   reverting before 1.5.0-rc2 release.

This reverts commit 7d9c1744.
parent fbcf93ea
......@@ -489,8 +489,10 @@ int udp_master(dthread_t *thread)
{
unsigned cpu = dt_online_cpus();
if (cpu > 1) {
unsigned cpu_mask = (dt_get_id(thread) % cpu);
dt_setaffinity(thread, &cpu_mask, 1);
unsigned cpu_mask[2];
cpu_mask[0] = dt_get_id(thread) % cpu;
cpu_mask[1] = (cpu_mask[0] + 2) % cpu;
dt_setaffinity(thread, cpu_mask, 2);
}
/* Drop all capabilities on all workers. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment