From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1945941AbXDEGi6 (ORCPT ); Thu, 5 Apr 2007 02:38:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1945943AbXDEGi6 (ORCPT ); Thu, 5 Apr 2007 02:38:58 -0400 Received: from e35.co.us.ibm.com ([32.97.110.153]:46709 "EHLO e35.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1945941AbXDEGi5 (ORCPT ); Thu, 5 Apr 2007 02:38:57 -0400 Date: Thu, 5 Apr 2007 12:16:19 +0530 From: Srivatsa Vaddagiri To: "Paul Menage" Cc: sekharan@us.ibm.com, ckrm-tech@lists.sourceforge.net, linux-kernel@vger.kernel.org, xemul@sw.ru, containers@lists.osdl.org, pj@sgi.com, "Eric W. Biederman" , mbligh@google.com, winget@google.com, rohitseth@google.com, "Serge E. Hallyn" , dev@sw.ru, devel@openvz.org Subject: Re: [ckrm-tech] [PATCH 7/7] containers (V7): Container interface to nsproxy subsystem Message-ID: <20070405064619.GE28414@in.ibm.com> Reply-To: vatsa@in.ibm.com References: <6599ad830704031030n2311bcd7hca9f34e64c66337f@mail.gmail.com> <20070403175101.GN2456@in.ibm.com> <6599ad830704031049v7fad0a83q3c24211cf44d71d6@mail.gmail.com> <20070404030756.GA9008@in.ibm.com> <6599ad830704032104hda0c4bu7099c23a86940c76@mail.gmail.com> <20070404051526.GA16562@in.ibm.com> <6599ad830704040000of7f1197ica543e14d290509e@mail.gmail.com> <20070404172643.GA28328@in.ibm.com> <6599ad830704041957y7b81c4ecrd21f4c08b9d7c72d@mail.gmail.com> <20070405063950.GA3435@in.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070405063950.GA3435@in.ibm.com> User-Agent: Mutt/1.5.11 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 05, 2007 at 12:09:50PM +0530, Srivatsa Vaddagiri wrote: > IF (note that /if/ again) the count returned is zero, then my point was > we can destroy nsproxy behind foo and also B1, not worrying about a > 'struct file' still pointing to B1. This stems from the fact that you > cannot have a task's file->f_bc pointing to B1 w/o the task itself > pointing to B1 also (task->nsproxy->ctlr_data[BC_ID] == B1). I also > assume f_bc will get migrated with its owner task across beancounters > (which seems reasonable to me atleast from 'struct file' context). > > If there was indeed a file object still pointing to B1, then that can > only be true if rcfs_task_count() returns non-zero value. Correct? arghh .. s/B1/A1 pls -- Regards, vatsa