]> xenbits.xensource.com Git - rumpuser-xen.git/commitdiff
Do not wrap thread_create
authorAntti Kantee <pooka@iki.fi>
Tue, 13 May 2014 21:58:47 +0000 (21:58 +0000)
committerAntti Kantee <pooka@iki.fi>
Tue, 13 May 2014 21:58:47 +0000 (21:58 +0000)
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.

rumphyper_synch.c

index 33ae050c354c042a0a496c308e217f4cfd58aeb1..e0c0808b50f63ff8c6f538aa3066ed8347fa4b4f 100644 (file)
@@ -100,9 +100,7 @@ rumpuser_thread_create(void *(*f)(void *), void *arg, const char *thrname,
        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
@@ -111,7 +109,6 @@ rumpuser_thread_create(void *(*f)(void *), void *arg, const char *thrname,
         */
        if (thr && joinable)
                thr->flags |= THREAD_MUSTJOIN;
-       rumpkern_sched(nlocks, NULL);
 
        if (!thr)
                return EINVAL;