From owner-cvs-all Thu Jan 2 11:52: 4 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FF6537B401; Thu, 2 Jan 2003 11:52:03 -0800 (PST) Received: from cleitus.hosting.swbell.net (cleitus.hosting.swbell.net [216.100.99.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id F00E143EA9; Thu, 2 Jan 2003 11:52:01 -0800 (PST) (envelope-from alc@imimic.com) Received: from imimic.com (adsl-216-63-78-18.dsl.hstntx.swbell.net [216.63.78.18]) by cleitus.hosting.swbell.net id OAA24062; Thu, 2 Jan 2003 14:51:58 -0500 (EST) [ConcentricHost SMTP Relay 1.14] Message-ID: <3E14985A.35AB67F4@imimic.com> Date: Thu, 02 Jan 2003 13:51:54 -0600 From: "Alan L. Cox" Organization: iMimic Networking, Inc. X-Mailer: Mozilla 4.8 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: John Baldwin Cc: Nate Lawson , cvs-committers@freebsd.org, cvs-all@freebsd.org, Alan Cox Subject: Re: cvs commit: src/sys/nfsclient nfs_vnops.c References: Content-Type: text/plain; charset=x-user-defined Content-Transfer-Encoding: 7bit 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 John Baldwin wrote: > ... > Unless you use M_NOWAIT (highly undesirable in mose cases), you need to > not hold locks across malloc() anyways as it can sleep. One should be > able to hold locks across free() without problems however. I would rather > require callers of the code in question to hold Giant for now rather than > add in hacks that have to be cleaned up later on. > In general, yes. The vnode interlock is, however, a special case. Any form of malloc() or free() while holding a vnode interlock will cause a reversal. This stems from the intertwining of vm objects and vnodes. Regards, Alan P.S. If someone knows a good place to document this, please do. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message