Subject: Re: Speeding up fork/wait path
To: Jaromir Dolecek <jdolecek@NetBSD.org>
From: Jason Thorpe <thorpej@wasabisystems.com>
List: tech-kern
Date: 10/25/2003 14:35:12
On Saturday, October 25, 2003, at 02:00  PM, Jaromir Dolecek wrote:

> I'm not sure I completely understand the logic, but I cannot see
> why it would be necessary to run the final child cleanup (work
> done by reaper) from process context. Neither of those two
> routines can block, can it? Theoretically it might be possible
> to do the cleanup directly from within exit2/lwp_exit2, avoiding
> the reaper entirely, right?

The reaper was specifically added (by me) because these code paths CAN 
block.  Any time you make a call into UVM, you are likely to take a 
lock, which could block.

         -- Jason R. Thorpe <thorpej@wasabisystems.com>