From owner-cvs-all Wed Jun 20 16:10:12 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0090437B407; Wed, 20 Jun 2001 16:10:07 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5KNA6k81884; Wed, 20 Jun 2001 16:10:06 -0700 (PDT) (envelope-from jhb) Message-Id: <200106202310.f5KNA6k81884@freefall.freebsd.org> From: John Baldwin Date: Wed, 20 Jun 2001 16:10:06 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_exec.c kern_proc.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jhb 2001/06/20 16:10:06 PDT Modified files: sys/kern kern_exec.c kern_proc.c Log: Fix some lock order reversals where we called free() while holding a proc lock. We now use temporary variables to save the process argument pointer and just update the pointer while holding the lock. We then perform the free on the cached pointer after releasing the lock. Revision Changes Path 1.132 +12 -10 src/sys/kern/kern_exec.c 1.95 +4 -3 src/sys/kern/kern_proc.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message