Subject: Re: Calling lockmgr in emul exit hook
To: Emmanuel Dreyfus <manu@netbsd.org>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: tech-kern
Date: 08/04/2002 14:52:45
On Sun, Aug 04, 2002 at 10:48:27PM +0200, Emmanuel Dreyfus wrote:
> I need to do a call to lockmgr() in irix_e_proc_exit(). Jaromir pointed
> out that I am not allowed to sleep at the time irix_e_proc_exit() is
> called from exit1(). This is written in a comment earlier in exit1().
> And lockmgr() could sleep.
>
> I wonder if calling lockmgr() with LK_SPIN is the right fix to this
> problem. Is it?
No, going from sleep to spin is not allowed.
Maybe the exit hook can be moved to right after the systrace_sys_exit()
call?
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>