Date: Sun, 15 Oct 2006 16:47:44 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 107957 for review Message-ID: <200610151647.k9FGliie022129@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=107957 Change 107957 by rdivacky@rdivacky_witten on 2006/10/15 16:46:44 Unlock q in a case of "continue"... this way we dont leak the proc lock. Affected files ... .. //depot/projects/linuxolator/src/sys/compat/linux/linux_emul.c#11 edit Differences ... ==== //depot/projects/linuxolator/src/sys/compat/linux/linux_emul.c#11 (text+ko) ==== @@ -213,8 +213,10 @@ for (; q != NULL; q = nq) { nq = LIST_NEXT(q, p_sibling); PROC_LOCK(q); - if (q->p_flag & P_WEXIT) + if (q->p_flag & P_WEXIT) { + PROC_UNLOCK(q); continue; + } PROC_UNLOCK(q); if (__predict_false(q->p_sysent != &elf_linux_sysvec)) continue;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610151647.k9FGliie022129>