From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752825AbbCJMrH (ORCPT ); Tue, 10 Mar 2015 08:47:07 -0400 Received: from mail-qc0-f169.google.com ([209.85.216.169]:44815 "EHLO mail-qc0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751545AbbCJMrE (ORCPT ); Tue, 10 Mar 2015 08:47:04 -0400 Date: Tue, 10 Mar 2015 08:47:01 -0400 From: Tejun Heo To: Aleksa Sarai Cc: lizefan@huawei.com, mingo@redhat.com, peterz@infradead.org, richard@nod.at, =?iso-8859-1?Q?Fr=E9d=E9ric?= Weisbecker , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org Subject: Re: [PATCH v2 1/2] cgroups: allow a cgroup subsystem to reject a fork Message-ID: <20150310124701.GB28730@htj.duckdns.org> References: <1424660891-12719-1-git-send-email-cyphar@cyphar.com> <1425010639-16492-1-git-send-email-cyphar@cyphar.com> <1425010639-16492-2-git-send-email-cyphar@cyphar.com> <20150309030636.GC13283@htj.duckdns.org> <20150309065902.GP13283@htj.duckdns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Aleksa. On Tue, Mar 10, 2015 at 07:19:06PM +1100, Aleksa Sarai wrote: > I'm not sure how to check for equality between two `css_set`s (or just two > `css`s). Is there a function to do so? Also, I'm not sure if there's a nice way You can compare the css pointers for equality. > of doing a charge that stops if you hit a certain `css` (unless we start > passing `css_set`s to the fork/exit callbacks -- and then we can uncharge the > old css_set and charge the new one). We'll have to pass the pointer from can_fork side to post_fork. I'm not sure how that should be done either. Thanks. -- tejun