From owner-freebsd-hackers Sat Jul 28 9:18:13 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from technokratis.com (modemcable052.174-202-24.mtl.mc.videotron.ca [24.202.174.52]) by hub.freebsd.org (Postfix) with ESMTP id C52B537B405 for ; Sat, 28 Jul 2001 09:18:09 -0700 (PDT) (envelope-from bmilekic@technokratis.com) Received: (from bmilekic@localhost) by technokratis.com (8.11.3/8.11.3) id f6SGMLn52034; Sat, 28 Jul 2001 12:22:21 -0400 (EDT) (envelope-from bmilekic) Date: Sat, 28 Jul 2001 12:22:21 -0400 From: Bosko Milekic To: Zhihui Zhang Cc: Terry Lambert , Alfred Perlstein , vishwanath pargaonkar , freebsd-hackers@FreeBSD.ORG Subject: Re: cluster size Message-ID: <20010728122221.A51951@technokratis.com> References: <3B61071A.C637EA85@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from zzhang@cs.binghamton.edu on Fri, Jul 27, 2001 at 08:23:37PM -0400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jul 27, 2001 at 08:23:37PM -0400, Zhihui Zhang wrote: > > I thought doing a memory free is always safe in an interrupt context. Now > it seems doing an allocation of memory is safe too. Does MCLGET() call > vm_page_alloc() or malloc() eventually? If so, it might block. It never calls malloc(). Sometimes, although rarely, it may end up in kmem_malloc() which calls vm_page_alloc(), but vm_page_alloc() should not block as in this case it will be called with the VM_ALLOC_INTERRUPT flag. > -Zhihui -- Bosko Milekic bmilekic@technokratis.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message