lkml.org 
[lkml]   [2008]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [-mm] Add an owner to the mm_struct (v8)
    On Fri, 04 Apr 2008 13:35:44 +0530
    Balbir Singh <balbir@linux.vnet.ibm.com> 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);
    > +
    I'm sorry for my laziness.

    Why do_each_thread() ? for_each_process() is not enough ?
    (because of delay_group_leader().)

    And what we have to test for the worst case is following, right ?
    ==
    1. create a tons of threads.
    2. create a process which calls vfork().
    3. keep child alive and vfork() caller exits
    ==

    Thanks,
    -Kame



    \
     
     \ /
      Last update: 2008-04-09 02:41    [W:9.723 / U:0.220 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site