When we're stopping, we're not going to create new tasks anymore, so
let's release the task pool upon each task_free() in order to reduce
memory fragmentation.
#include <common/ticks.h>
#include <eb32tree.h>
+#include <types/global.h>
#include <types/task.h>
/* Principle of the wait queue.
static inline void task_free(struct task *t)
{
pool_free2(pool2_task, t);
+ if (unlikely(stopping))
+ pool_flush2(pool2_task);
nb_tasks--;
}