From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755291AbZHDIiB (ORCPT ); Tue, 4 Aug 2009 04:38:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754534AbZHDIiA (ORCPT ); Tue, 4 Aug 2009 04:38:00 -0400 Received: from smtp201.iad.emailsrvr.com ([207.97.245.201]:41623 "EHLO smtp201.iad.emailsrvr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750958AbZHDIh7 (ORCPT ); Tue, 4 Aug 2009 04:37:59 -0400 Message-ID: <4A77F366.9020104@librato.com> Date: Tue, 04 Aug 2009 04:37:58 -0400 From: Oren Laadan Organization: Librato User-Agent: Thunderbird 2.0.0.22 (X11/20090608) MIME-Version: 1.0 To: "Serge E. Hallyn" , Sukadev Bhattiprolu 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 Subject: Re: [RFC v17][PATCH 16/60] pids 6/7: Define do_fork_with_pids() References: <1248256822-23416-1-git-send-email-orenl@librato.com> <1248256822-23416-17-git-send-email-orenl@librato.com> <20090803182640.GB7493@us.ibm.com> In-Reply-To: <20090803182640.GB7493@us.ibm.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Serge E. Hallyn wrote: > Quoting Oren Laadan (orenl@librato.com): >> From: Sukadev Bhattiprolu > ... >> +struct target_pid_set { >> + int num_pids; >> + pid_t *target_pids; >> +}; > > Oren, I thought you had decided to add an extended flags field > here, to support additional CLONE_ flags - such as CLONE_TIMENS? Yes. > > I mention it now because if you're still considering that > long-term, then IMO the syscall should not be called clone_with_pids(), > but clone_extended(). Otherwise, to support new clone flags we'll > either have to use unshare2 (without clone support), or add yet > another clone variant, OR use clone_with_pids() which is a poor name > for something which will likely be used in cases without specifying > pids, but specifying flags not support through any other interface. True. Also, Suka - any objections to rename 'struct target_pid_set' to simply 'struct pid_set' ? Actually, it could probably be (re)used internally in the patch that adds to cgroup a 'procs' file similar to 'tasks' (https://lists.linux-foundation.org/pipermail/containers/2009-July/019679.html) Oren.