Date: Tue, 15 Aug 2006 13:54:01 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 104026 for review Message-ID: <200608151354.k7FDs1Vn093614@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=104026 Change 104026 by rdivacky@rdivacky_witten on 2006/08/15 13:53:34 Lock the emuldata in a case we just created it. Pointed out by: jhb Affected files ... .. //depot/projects/soc2006/rdivacky_linuxolator/compat/linux/linux_emul.c#7 edit Differences ... ==== //depot/projects/soc2006/rdivacky_linuxolator/compat/linux/linux_emul.c#7 (text+ko) ==== @@ -100,6 +100,7 @@ if (p == NULL) panic("process not found in proc_init\n"); p->p_emuldata = em; + EMUL_LOCK(&emul_lock); PROC_UNLOCK(p); } else { /* lookup the old one */ @@ -129,6 +130,7 @@ if (child != 0) { + EMUL_UNLOCK(&emul_lock); EMUL_SHARED_WLOCK(&emul_shared_lock); LIST_INSERT_HEAD(&em->shared->threads, em, threads); EMUL_SHARED_WUNLOCK(&emul_shared_lock);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608151354.k7FDs1Vn093614>