From owner-p4-projects Wed Apr 17 11:43:18 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 7511737B417; Wed, 17 Apr 2002 11:43:13 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B8CB837B404 for ; Wed, 17 Apr 2002 11:43:12 -0700 (PDT) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3HIhCv48591 for perforce@freebsd.org; Wed, 17 Apr 2002 11:43:12 -0700 (PDT) (envelope-from jhb@freebsd.org) Date: Wed, 17 Apr 2002 11:43:12 -0700 (PDT) Message-Id: <200204171843.g3HIhCv48591@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to jhb@freebsd.org using -f From: John Baldwin Subject: PERFORCE change 9926 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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