lkml.org 
[lkml]   [2009]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH 8/8] check files for checkpointability
Quoting Dave Hansen (dave@linux.vnet.ibm.com):
> On Mon, 2009-03-02 at 11:22 -0600, Nathan Lynch wrote:
> > No.. I mean what if a process 1234 does
> >
> > f = fopen("/proc/1234/stat", "r");
> >
> > and is then checkpointed. Can that path be resolved during restart,
> > before pid 1234 is alive?
>
> Heh, that's a good one.
>
> It does mean that we can't do restore like this:
>
> for_each_cr_task()
> restore_task_struct()
> restore_files()
> ...
>
> We have to do:
>
> for_each_cr_task()
> restore_task_struct()
> for_each_cr_task()
> restore_files()
>
>
> -- Dave

Which is what we actually do, right?

Actually we have userspace create the tasks first, and
then each task calls sys_restart which does restore_files().

-serge


\
 
 \ /
  Last update: 2009-03-02 18:47    [W:0.048 / U:0.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site