Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932220AbbFIHXS (ORCPT ); Tue, 9 Jun 2015 03:23:18 -0400 Received: from mail-ob0-f182.google.com ([209.85.214.182]:35571 "EHLO mail-ob0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752373AbbFIHXI (ORCPT ); Tue, 9 Jun 2015 03:23:08 -0400 MIME-Version: 1.0 In-Reply-To: References: <1433547736-11707-1-git-send-email-cyphar@cyphar.com> <1433548938-32560-4-git-send-email-cyphar@cyphar.com> <20150609044133.GQ21465@mtj.duckdns.org> Date: Tue, 9 Jun 2015 16:23:07 +0900 X-Google-Sender-Auth: Hn-RUq4BmUstdRZhdc3xtpDewn8 Message-ID: Subject: Re: [PATCH v13 4/5] cgroup: allow a cgroup subsystem to reject a fork From: Tejun Heo To: Aleksa Sarai Cc: Li Zefan , Ingo Molnar , Peter Zijlstra , Richard Weinberger , =?UTF-8?B?RnLDqWTDqXJpYyBXZWlzYmVja2Vy?= , lkml , Cgroups Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 825 Lines: 22 Hello, On Tue, Jun 9, 2015 at 4:20 PM, Aleksa Sarai wrote: > CGROUP_CANFORK_{START,END,COUNT} aren't used to restrict the > iteration. They're used for restricting the size of the @ss_priv > array. If you want, I can use CANFORK_{START,END} to restrict the > iteration -- I just prefer using the for_each_subsys_which API for > iterating over active cgroups. :/ Ah, I see. Hmm... yeah, let's keep the code for now, but I think it'd be cheaper / cleaner to use those macro tags to restrict iteration and drop all the masks in the future. Thanks. -- tejun -- 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/