From owner-freebsd-current Sun Jun 16 23:52:35 2002 Delivered-To: freebsd-current@freebsd.org Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by hub.freebsd.org (Postfix) with ESMTP id B546A37B40C; Sun, 16 Jun 2002 23:52:33 -0700 (PDT) Received: from pool0214.cvx21-bradley.dialup.earthlink.net ([209.179.192.214] helo=mindspring.com) by albatross.prod.itd.earthlink.net with esmtp (Exim 3.33 #2) id 17JqNL-0000c5-00; Sun, 16 Jun 2002 23:52:31 -0700 Message-ID: <3D0D870A.9BC3D728@mindspring.com> Date: Sun, 16 Jun 2002 23:51:54 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "Kenneth D. Merry" Cc: current@FreeBSD.org, alc@FreeBSD.org Subject: Re: vm_object_allocate() question References: <20020616221919.A78576@panzer.kdm.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Kenneth D. Merry" wrote: > 2. Change vm_object_allocate() somehow so that uma_zalloc() isn't called > with M_WAITOK. > > I've attached patches for the second option. I created a new function, > vm_object_allocate_wait(), that allows the user to specify whether or not > to wait on the uma_zalloc() call. > > vm_object_allocate() is a wrapper for the new vm_object_allocate_wait() > call that preserves the current behavior. > > Patches are attached, comments would be appreciated! Can't this happen as a result of a fault? If that's the case, then the M_WAITOK is, well, required. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message