Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jul 2002 15:03:57 -0700 (PDT)
From:      Julian Elischer <julian@elischer.org>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   Re: PERFORCE change 13995 for review
Message-ID:  <Pine.BSF.4.21.0207091503180.35930-100000@InterJet.elischer.org>
In-Reply-To: <200207092121.g69LLYBh092119@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
 this looks "odd"


==== //depot/projects/smpng/sys/i386/i386/machdep.c#40 (text+ko) ====

@@ -825,8 +825,11 @@
        struct trapframe *regs = td->td_frame;
        struct pcb *pcb = td->td_pcb;
 
+       mtx_lock_spin(&sched_lock);
        if (td->td_proc->p_md.md_ldt)
                user_ldt_free(td);
+       else
+               mtx_unlock_spin(&sched_lock);
   
        bzero((char *)regs, sizeof(struct trapframe));
        regs->tf_eip = entry;


does user_ldt_free(td) release the sched lock?




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0207091503180.35930-100000>