Re: [-mm] Add an owner to the mm_struct (v7)

From: Paul Menage
Date: Thu Apr 03 2008 - 14:30:28 EST


On Thu, Apr 3, 2008 at 11:25 AM, Dave Hansen <dave@xxxxxxxxxxxxxxxxxx> wrote:
> > + /*
> > + * Search through everything else. We should not get
> > + * here often
> > + */
> > + do_each_thread(g, c) {
> > + if (c->mm == mm)
> > + goto assign_new_owner;
> > + } while_each_thread(g, c);
>
> What is the case in which we get here? Threading that's two deep where
> none of the immeidate siblings or children is still alive?

Probably the most likely case of this would be a LinuxThreads process
where the manager thread exits, and then the main thread, while other
threads still exist.

Paul
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/