[Devel] [RFC][PATCH 14/16] Introduce proc_mnt for pid_ns

Dave Hansen hansendc at us.ibm.com
Thu May 31 09:40:04 PDT 2007


On Thu, 2007-05-31 at 15:48 +0400, Pavel Emelianov wrote:
> > +void proc_flush_task(struct task_struct *task)
> > +{
> > +     int i;
> > +     struct pid *pid;
> > +     struct upid* upid;
> > +
> > +     pid = task_pid(task);
> > +     if (!pid)
> > +             return;
> 
> The code below will never be called as task flushes all his pids
> in __unhash_process() that happens before this. Or did I miss smth? 

Nope, that's a very nice catch.  Suka is working on a patch to fix this
right now.  We just need to keep the list of pids accessible a little
longer, but I think Suka ran into a chicken-and-egg problem while trying
to solve this.  Suka, care to post your workaround?

-- Dave

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list