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
 [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to