[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090722175223.GA19389@us.ibm.com>
Date: Wed, 22 Jul 2009 12:52:23 -0500
From: "Serge E. Hallyn" <serue@...ibm.com>
To: Oren Laadan <orenl@...rato.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Linus Torvalds <torvalds@...l.org>,
containers@...ts.linux-foundation.org,
linux-kernel@...r.kernel.org, linux-mm@...ck.org,
linux-api@...r.kernel.org, Dave Hansen <dave@...ux.vnet.ibm.com>,
Ingo Molnar <mingo@...e.hu>, "H. Peter Anvin" <hpa@...or.com>,
Alexander Viro <viro@...iv.linux.org.uk>,
Pavel Emelyanov <xemul@...nvz.org>,
Alexey Dobriyan <adobriyan@...il.com>,
Oren Laadan <orenl@...columbia.edu>
Subject: Re: [RFC v17][PATCH 22/60] c/r: external checkpoint of a task
other than ourself
Quoting Oren Laadan (orenl@...rato.com):
> Now we can do "external" checkpoint, i.e. act on another task.
...
> long do_checkpoint(struct ckpt_ctx *ctx, pid_t pid)
> {
> long ret;
>
> + ret = init_checkpoint_ctx(ctx, pid);
> + if (ret < 0)
> + return ret;
> +
> + if (ctx->root_freezer) {
> + ret = cgroup_freezer_begin_checkpoint(ctx->root_freezer);
> + if (ret < 0)
> + return ret;
> + }
Self-checkpoint of a task in root freezer is now denied, though.
Was that intentional?
-serge
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists