[illumos-Developer] missing lwp_exit() in kcfpool_svc()
Dan McDonald
danmcd at nexenta.com
Sun Apr 3 07:34:14 PDT 2011
On Sat, Apr 02, 2011 at 09:57:51PM -0700, Garrett D'Amore wrote:
> I've added this comment (but not updated the webrev):
>
> /*
> * lwp_exit() assumes it is called
> * with the proc lock held. But the
> * first thing it does is drop it.
> * This ensures that lwp does not
> * exit before lwp_create is done
> * with it.
> */
> mutex_enter(&curproc->p_lock);
> lwp_exit(); /* does not return */
>
>
> Hopefully that is what you were looking for.
Even more than what I was looking for. Thanks for thinking about the
newbies.
Dan
More information about the Developer
mailing list