From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: + hugetlb-cgroup-simplify-pre_destroy-callback.patch added to -mm tree Date: Fri, 20 Jul 2012 12:56:43 -0700 Message-ID: <20120720195643.GC21218@google.com> References: <20120718212637.133475C0050@hpza9.eem.corp.google.com> <20120719113915.GC2864@tiehlicka.suse.cz> <87r4s8gcwe.fsf@skywalker.in.ibm.com> <20120719123820.GG2864@tiehlicka.suse.cz> <87ipdjc15j.fsf@skywalker.in.ibm.com> <20120720080639.GC12434@tiehlicka.suse.cz> <87d33qmeb9.fsf@skywalker.in.ibm.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=VHiTUpi7Ryd8EH/23o+oQhe9eCyGl8/cotb9z9UU3JI=; b=H5QmYcu5NhGCEob9jNPVOBPXtZPXF5U6y10yvUw25Bfm6vPcwgdCRQZa6gwpzOzyP8 SD/8SLeJWOs8HQs0r4xhhsgYwpmSX1Auf+evaHyCGTfFkqRE2iduSn2OA0+SUxvxKye8 I9xxyfh0gaUrhnMmB9mN2ikXzKoJoVTJ0CgVlR3GtqqwAPFI3sIM/JeGl3lTxE9nwE7c MKvo9+aMdvpLkA2hSYyIbRHciLPeb0oD1CEp+mDAezAwipTyPTtTUQ7ZKLfNAi/y03H5 XYYfMaqtAMEEQrVhnkHAxp3ZO2S2LTIRG7h6HPOCdtW8njOsawRoB6XWmwlmWSPgFUlc wXnw== Content-Disposition: inline In-Reply-To: <87d33qmeb9.fsf@skywalker.in.ibm.com> Sender: owner-linux-mm@kvack.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: "Aneesh Kumar K.V" Cc: Michal Hocko , akpm@linux-foundation.org, mm-commits@vger.kernel.org, kamezawa.hiroyu@jp.fujitsu.com, liwanp@linux.vnet.ibm.com, Li Zefan , cgroups mailinglist , linux-mm@kvack.org On Sat, Jul 21, 2012 at 12:48:34AM +0530, Aneesh Kumar K.V wrote: > Does cgroup_rmdir do a cgroup_task_count check ? I do see that it check > cgroup->childern and cgroup->count. But cgroup->count is not same as > task_count right ? > > May be we need to push the task_count check also to rmdir so that > pre_destory doesn't need to check this task_count implies cgroup refcnt which cgroup core does check. No need to worry about that, ->children or whatever from memcg. As soon as the deprecated behavior is gone, everything will be okay; otherwise, it's a bug in cgroup core. Thanks. -- tejun -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org