On Thu, Jun 17, 2010 at 03:27:06PM +0100, Mindaugas Rasiukevicius wrote:
> Chuck Silvers <c...@chuq.com> wrote:
> > 
> > the updated diff is at:
> > ftp://ftp.netbsd.org/pub/NetBSD/misc/chs/linux/diff.linux-nptl-take2.39
> > 
> 
> The emulation hook, which performs proc_free_pid(l->l_lid), is called before
> LWP gets removed from the global list - so there is a small window where LID
> uniqueness is not preserved.  How about adding LP_LIDPID flag and moving
> proc_free_pid() into lwp_exit(), which makes it symmetric with lwp_create()?

good point.  moving that into lwp_exit() sounds fine, I'll do that.

an updated diff (with this plus the p_lock changes) is at the usual
ftp://ftp.netbsd.org/pub/NetBSD/misc/chs/linux/diff.linux-nptl-take2.40

-Chuck

Reply via email to