PERFORCE change 107957 for review
Roman Divacky
rdivacky at FreeBSD.org
Sun Oct 15 09:47:47 PDT 2006
http://perforce.freebsd.org/chv.cgi?CH=107957
Change 107957 by rdivacky at 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;
More information about the p4-projects
mailing list