Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp494777rdb; Tue, 19 Sep 2023 01:22:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHO+fRoIfh6OeMeME+JwaYPmkZCGAr4JBqOrPbmbvPwPKV1PbLqeYqg5ektT3UrPnZyX98y X-Received: by 2002:a05:6358:3412:b0:135:a10e:1ed0 with SMTP id h18-20020a056358341200b00135a10e1ed0mr10311770rwd.23.1695111758783; Tue, 19 Sep 2023 01:22:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695111758; cv=none; d=google.com; s=arc-20160816; b=ZouBu7OfO0hEpHk+/vWQLFcb3yvrrazOj9Yth0NNQtAqPn0C0yUL/Epk+UZ4Zzw32H 6CWUfnzgv1KS/fUl+wpkfhL4kCj8xzrGfg5b3wD2y1Knp8IXsCCCV4FlAa7/25aLPb+X YRPO+v9tEoBmAK4k3sTCmrCOTRjEgjvPPpvMcp8FR1PpxvN1s2/O78i3jDNsserLYBPP S7LU3QN4F8wd601eiWsj1C/IhcNohqC18JC1jaFIqhwLRldEuZtu5VztUWvDrCQ1UHP7 dcp/4pI/rpl/ZZgqz81hKwkJ/8jnyzSPfdIgPs0qtmYjoC9hKiQRuGq9gQPWpshT/1ri KR3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=LQDoCkknityzKxYLZnoGn22QkefMP1I66BO9eL96RWg=; fh=BGKs6JkLQnxgMvWGXvBW3+t9i6GdlmBO/g1vUt/HbRE=; b=ckibmlLpXWsNP0nHaqpokJyTHkTxRXzea9SvhykSU5ekyAl6z0K5K9+HhBreCIKLex Aqa18deKBxHPsyH93XOqRhM617dpzJX8FnP6TgjYmqPiU1Un/NL0lI10U7D6HzhZkDLP jGRQlSzoejdt9cPBHrVuCeP7rl92SrbybFavE1VKk2j+WieZVNIgKht/43fNvnCL29nO FA5j4yRpsN36Jdip+nCG8xZmp54kWI71oYnjbmo5dHMKdtOsdVj/N3i4LtuRUqH2oKL0 yL2m9rnORUQa/eIwGt1LHGwaz5ZMBvMswBGFbOhYJ9ymWEZRTbKkgxF7GyZe5TLP65H9 RKxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DX44+Tkf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id o25-20020a635a19000000b00563de35d397si9080173pgb.487.2023.09.19.01.22.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 01:22:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DX44+Tkf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 9735E80C5F92; Mon, 18 Sep 2023 11:57:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229850AbjIRS6A (ORCPT + 99 others); Mon, 18 Sep 2023 14:58:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229771AbjIRS57 (ORCPT ); Mon, 18 Sep 2023 14:57:59 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ED6B10D; Mon, 18 Sep 2023 11:57:52 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1c44c0f9138so19316245ad.2; Mon, 18 Sep 2023 11:57:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695063471; x=1695668271; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=LQDoCkknityzKxYLZnoGn22QkefMP1I66BO9eL96RWg=; b=DX44+TkfJEkrRIvfFqd9Zdwn5DZ8gInosV7cROO0uElsTlCV89+H7JT4Pbul457jZT EMXQysi1yJjdUQeFd644wJUDCohAlNJ1mT0lxoQhiJwvxjJeQDcJgplo3PBJTSA1iI9G 3btEyg8x2EsG9AeJ3jphxKuhPtZlRETAj00qOpiT1TC8lFrytHT7ObcJgEPf4PSp8XJ9 CzgE6tVmncuHlDpcon+jLI7id6Ld14Pyi5R+WO6bqlWNVpBo9Tu0IBMNyr5AD5G8DBbU qvPCEbi3bmusYMJ/ceFgnSd07mJmmTfkFkUlr6tBLcafMNb1zJbPSYwuil24+HzjQHzw Bv7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695063471; x=1695668271; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LQDoCkknityzKxYLZnoGn22QkefMP1I66BO9eL96RWg=; b=nAdHaOT6mSdUlcEFTldTupz8V4R80fS+vVHrOmizdx+CD7x6K9YDg4Basay8NFmJPy EZT4U4HDaO/w/B71HGSmU5BbEey8vLLFqfaRsVqpJstf0/k5UlZxts/R6KasiL8iZOFw 5XPSc1EDNhp//WB+DW6dE1xIvAUHXGiGiYThSF5d2R+1MiheiPC5Wr+qXQURW0fDKMu0 I43QxLvHar6dydNoAGnMlVWEh1bnGV1N7U1ji5LY0CNnbE8GHxKaWPYLtJA6Na4Y4lix ftWj8MGKEMm4XMMhiG7HguvMNsN1z+kbZDg9djFOvAWjKo+JiGYI0LBwz2ipCsyHefyR XaKw== X-Gm-Message-State: AOJu0YwbAgWm+l1dZUn9Ax9TNKmrPRfSGVET6jgc/L4EDGgyKkv9TkiW DRHzXwvDYBnEEZxZbbdyekc= X-Received: by 2002:a17:902:c404:b0:1c3:1f0c:fb82 with SMTP id k4-20020a170902c40400b001c31f0cfb82mr8807898plk.41.1695063471578; Mon, 18 Sep 2023 11:57:51 -0700 (PDT) Received: from localhost (dhcp-72-235-13-41.hawaiiantel.net. [72.235.13.41]) by smtp.gmail.com with ESMTPSA id q21-20020a170902bd9500b001c1f016015esm8597114pls.84.2023.09.18.11.57.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 11:57:51 -0700 (PDT) Sender: Tejun Heo Date: Mon, 18 Sep 2023 08:57:49 -1000 From: Tejun Heo To: Kamalesh Babulal Cc: Zefan Li , Johannes Weiner , Tom Hromatka , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] cgroup: Check for ret during cgroup1_base_files cft addition Message-ID: References: <96694dfc5f4caf4d84a740c3b18b0a456c9ff522.1694501024.git.kamalesh.babulal@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <96694dfc5f4caf4d84a740c3b18b0a456c9ff522.1694501024.git.kamalesh.babulal@oracle.com> X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 18 Sep 2023 11:57:57 -0700 (PDT) On Tue, Sep 12, 2023 at 12:34:34PM +0530, Kamalesh Babulal wrote: > There is no check for possible failure while populating > cgroup1_base_files cft in css_populate_dir(), like its cgroup v2 counter > parts cgroup_{base,psi}_files. In case of failure, the cgroup might not > be set up right. Add ret value check to return on failure. > > Signed-off-by: Kamalesh Babulal Applied to cgroup/for-6.7 with double spaces removed. Thanks. -- tejun