Subject: Re: pool_get(PR_NOWAIT) can lead to pool_get(PR_WAITOK)
To: Frank van der Linden <fvdl@wasabisystems.com>
From: Chuck Silvers <chuq@chuq.com>
List: tech-kern
Date: 08/05/2002 09:28:58
On Mon, Aug 05, 2002 at 03:22:44AM +0200, Frank van der Linden wrote:
> The quickest solution I see is to pass a WAIT/NOWAIT flag to
> uvm_mapent_alloc, have it use PR_NOWAIT/PR_WAITOK depending on that, and
> return NULL properly if it fails. Callers will always pass in WAIT,
> because that is the current default. For cases where a WAIT/NOWAIT flag
> is passed down from above, it can be used appropriately (uvm_map() is
> such a case), and the return value will be checked.
> 
> Comments?


that should be fine for now.

-Chuck