Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753424AbZGVR5o (ORCPT ); Wed, 22 Jul 2009 13:57:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751735AbZGVR5o (ORCPT ); Wed, 22 Jul 2009 13:57:44 -0400 Received: from e39.co.us.ibm.com ([32.97.110.160]:37023 "EHLO e39.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751162AbZGVR5n (ORCPT ); Wed, 22 Jul 2009 13:57:43 -0400 Date: Wed, 22 Jul 2009 12:52:23 -0500 From: "Serge E. Hallyn" To: Oren Laadan Cc: Andrew Morton , Linus Torvalds , containers@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-api@vger.kernel.org, Dave Hansen , Ingo Molnar , "H. Peter Anvin" , Alexander Viro , Pavel Emelyanov , Alexey Dobriyan , Oren Laadan Subject: Re: [RFC v17][PATCH 22/60] c/r: external checkpoint of a task other than ourself Message-ID: <20090722175223.GA19389@us.ibm.com> References: <1248256822-23416-1-git-send-email-orenl@librato.com> <1248256822-23416-23-git-send-email-orenl@librato.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1248256822-23416-23-git-send-email-orenl@librato.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 744 Lines: 29 Quoting Oren Laadan (orenl@librato.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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/