Date: Tue, 8 Aug 2006 15:38:16 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 103450 for review Message-ID: <200608081538.k78FcGVi007313@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=103450 Change 103450 by rdivacky@rdivacky_witten on 2006/08/08 15:37:25 Dont sleep on p->p_emuldata which is usually NULL but on &p->p_emuldata which provides more sensible value. Affected files ... .. //depot/projects/soc2006/rdivacky_linuxolator/i386/linux/linux_machdep.c#36 edit Differences ... ==== //depot/projects/soc2006/rdivacky_linuxolator/i386/linux/linux_machdep.c#36 (text+ko) ==== @@ -1223,7 +1223,7 @@ p = pfind(child); PROC_UNLOCK(p); /* we might have a sleeping linux_schedtail */ - wakeup(p->p_emuldata); + wakeup(&p->p_emuldata); } else EMUL_RUNLOCK(&emul_lock); @@ -1352,7 +1352,7 @@ * tsleep and be woken up by it. We use p->p_emuldata for this */ - error = tsleep(p->p_emuldata, PLOCK, "linux_schedtail", hz); + error = tsleep(&p->p_emuldata, PLOCK, "linux_schedtail", hz); if (error == 0) goto retry; #ifdef DEBUG
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608081538.k78FcGVi007313>