Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp338471pxb; Thu, 26 Aug 2021 04:30:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx80GrNbxcwWC5syIezIr4KsQNlYsKgIQmdsQMk2Esgq/I6pYFhx967L3VDcwJoSOxVwrpF X-Received: by 2002:a05:6e02:20cd:: with SMTP id 13mr2349270ilq.156.1629977452469; Thu, 26 Aug 2021 04:30:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629977452; cv=none; d=google.com; s=arc-20160816; b=JOTFVB44nSzIfz36Nch3sk29FLVGoiY5/yqURqRoxIHaJ+vgfaSZSH+BkUPM2j3Jk3 09M4kjiu6HXS1CBtKrgTasO8UvRhY4c0Fb53HnJDWEzB4WAOcj2kOB2eHdEh6tJqVDfl 0WHx+9RcUCY0RSTOSkfDQvkVreAcppiggFFQUyK788hlZLY3cWbBoGnkIdMvvgBeedcu g15Wm+ZV70BHQIuOIkDpTDqXcIRiEkMTDQSXZs6Vv84g58yVoekm4JdBfn0X1F4776SD vEePayEHkP4WQh4848kcexR1O6iev1ZVlDTzl6UfOj+XkAfTT+DhTsb25Jxia1lTS+1q R3Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=IN2Dtsa48cpPIFgznxW6CFNis9T0sGloZqOdQstyxAo=; b=WZVsvRBpDP/EDIl7phq+dNfsgiSWZLhKYijwH1AQw80BfQUWz8bPPKvy8LqBKFYTTe YJUevUGtRwAlYVZ3vl9Go/n7JEh/cdvRYtof/bgR/JBPAazqWoLuTy6xGh4jKc4KGT+d mCJKnnOqTTuNkKYBTW3qgxTLUsZ3fgqZyUa5lWItnC7dt9I6nXQ2jCFP6fQwEfIYZZRq mHZLM7bQsFpUSlLDtMBjRr8mPY3z+2RoXxnc9njXlxZZ+v+TY89Z0uS2c5F3aWpdzJEX IG3hhMObzh/PCEANthFR8eoBOLDWcsYWGiiUWTIT1sGr7BQ7trdv5g8Ful/YqPmET9wl jMSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=M+31mAg0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a3si2566181ilq.96.2021.08.26.04.30.41; Thu, 26 Aug 2021 04:30:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=M+31mAg0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242059AbhHZLao (ORCPT + 99 others); Thu, 26 Aug 2021 07:30:44 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:37246 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233829AbhHZLan (ORCPT ); Thu, 26 Aug 2021 07:30:43 -0400 Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id CA87020192; Thu, 26 Aug 2021 11:29:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1629977395; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=IN2Dtsa48cpPIFgznxW6CFNis9T0sGloZqOdQstyxAo=; b=M+31mAg0zGIMPzDxcdU19Pxt7nwlp+rrH9dYqxplbi8iG3GiPB7PHCSVgk3FfheCJFRxXg ulMuwr76znAH/IGQnRHgKr2k5NYpeW4BiHjWEndgG7ZBZl/bbwAi80S00H/GjH7PlxevmC /esdDomCduAV0AEL4GdMz040vAT3Fag= Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id AB94613318; Thu, 26 Aug 2021 11:29:55 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id y9nSKDN7J2HENwAAGKfGzw (envelope-from ); Thu, 26 Aug 2021 11:29:55 +0000 Date: Thu, 26 Aug 2021 13:29:54 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: brookxu Cc: Tejun Heo , lizefan.x@bytedance.com, hannes@cmpxchg.org, vipinsh@google.com, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org Subject: Re: [PATCH v2] misc_cgroup: use a counter to count the number of failures Message-ID: <20210826112954.GD4520@blackbody.suse.cz> References: <20210824164423.GA11859@blackbody.suse.cz> <4ed67493-e595-e002-69f9-1f53662ba189@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4ed67493-e595-e002-69f9-1f53662ba189@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 26, 2021 at 09:34:45AM +0800, brookxu wrote: > The core logic of pids cgroup and misc cgroup is similar. Yes, the latter is conceptually a generalization of the former and it can be tempting to use the general form. Beware that pids controller would need to retain its existing API (and the behavior of being an independent controller) and that would be IMO exceptions counterweighting the generalization. > Is it possible for us to merge pids cgroup into misc cgroup? Technically it might be possible but I can't see the benefit (but maybe you envisioned something else where my reasoning won't apply). Michal