Re: [Fwd: [-mm] Add an owner to the mm_struct (v9)]
From: Paul Menage
Date: Tue Apr 15 2008 - 14:13:53 EST
On Tue, Apr 15, 2008 at 10:13 AM, Oleg Nesterov <oleg@xxxxxxxxxx> wrote:
>
> Let's suppose the process with a lot of threads does exit_group() and nobody
> else uses this ->mm. How many time we will re-assign mm->owner and iterate
> over the all threads in system ?
>
In general we won't get to the third loop, since one of the first two
loops (children or siblings) will find another mm user.
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/