1) it's probably quite fast and without deadlocks
2) it causes recursion with softints
So, wrt. "2", this fix is kind of a hack, but I have the softint
revamp on the horizon anyway, so better revisit the issue then.
int joinable, int pri, int cpuidx, void **tptr)
{
struct thread *thr;
- int nlocks;
- rumpkern_unsched(&nlocks, NULL);
thr = create_thread(thrname, (void (*)(void *))f, arg);
/*
* XXX: should be supplied as a flag to create_thread() so as to
*/
if (thr && joinable)
thr->flags |= THREAD_MUSTJOIN;
- rumpkern_sched(nlocks, NULL);
if (!thr)
return EINVAL;