Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Apr 2002 11:43:12 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 9926 for review
Message-ID:  <200204171843.g3HIhCv48591@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=9926

Change 9926 by jhb@jhb_laptop on 2002/04/17 11:42:49

	Protect nprocs decrement with xlock of allproc_lock.

Affected files ...

... //depot/projects/smpng/sys/kern/kern_exit.c#34 edit

Differences ...

==== //depot/projects/smpng/sys/kern/kern_exit.c#34 (text+ko) ====

@@ -665,7 +665,9 @@
 			vm_waitproc(p);
 			mtx_destroy(&p->p_mtx);
 			uma_zfree(proc_zone, p);
+			sx_xlock(&allproc_lock);
 			nprocs--;
+			sx_xunlock(&allproc_lock);
 			mtx_unlock(&Giant);
 			return (0);
 		}

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?200204171843.g3HIhCv48591>