Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1867115pxb; Sat, 23 Apr 2022 20:36:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRWNLoT7TcQ37KJUsbcMyhPf75CUGjrfuy2KT8DeQ7ig+9/CbURLNx2oC5RRR5MNbr4xS/ X-Received: by 2002:a17:903:110c:b0:14a:f110:84e1 with SMTP id n12-20020a170903110c00b0014af11084e1mr11792951plh.7.1650771380991; Sat, 23 Apr 2022 20:36:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650771380; cv=none; d=google.com; s=arc-20160816; b=FoTOetnZ+1hGMFMS2JbCtdmsC3c6NnRkR3/Tch5ntO2767iNsRvvmdtoDC+2hEvRya +0k8XP/RojM8E9JZmpFsAR3IBvVzMcnxN1xuKUZFFFsnZ8yCskSzuGVyn8ZSszbmuxPM kb/exkfOCfamLSCqFQkbiU3PBpdCTqe32/fWd3uAv89+q8O/ZgnrQBL2Lbsw1X/a0ecM Q2o5sFbz3pC55tiCviUmNfzXqx/a2/6ouHEXzHYnScZtVKKcAVpfmPwDPQCGqD8w4c9J Up41zMkwAAdPUwQAWJt16K/3yn8Nko6lDuu7eZN6I2jnNWK0dS5M1WcosL2HuYhCft02 OmlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=T8hqvwXzMDJqZ8Axnxfnhvq+3Bu/rfhoYjsi7PA4tsE=; b=B33OwHPfLkzmnGHCvyUXWxkCIXIg/SytR4nZ0YRUBckXdn0vqsJnk2T3A8B+gy3KSb f3rE8xQK1ll4nnQ4m9FRroYJER9C4U6taAxQ2sr3m3Ua7fKSSsyX65BUOeznofUAigoG ds6WXTXQgWU1sX2xQsk3QaKmp8S4PLkBaEGK9DALSvLvQBxMqCA29ZMJr75yg9BnFxOr xYHVrrgt0PNM8zLcUAeFhu6ozFaqa8qjOvbzfBwZIS6WKwzse+g9vIBciTilOgOYcjfm GkGlILmnvf4orymwqPYTSq8jOskKnjNYlxb9ZsaKVU0/L6TpKzoAenXgxorH3Pzj223W EQOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=SaaEKps4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b10-20020a65668a000000b0039890725054si12722532pgw.711.2022.04.23.20.36.05; Sat, 23 Apr 2022 20:36:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=SaaEKps4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235886AbiDWOEp (ORCPT + 99 others); Sat, 23 Apr 2022 10:04:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235928AbiDWOEm (ORCPT ); Sat, 23 Apr 2022 10:04:42 -0400 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 497BC6AA58 for ; Sat, 23 Apr 2022 07:01:44 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-2f4e17a5809so51946257b3.2 for ; Sat, 23 Apr 2022 07:01:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=T8hqvwXzMDJqZ8Axnxfnhvq+3Bu/rfhoYjsi7PA4tsE=; b=SaaEKps4SdcXrfWLEhDKbRKvWuHqxD/qC9DthlbxTefT8zFbnCkKN6Twt0N/zWPsAU kJOzbP+3wq3L1DT7U8hKowgIHXNJSlfhEhCCYfjXkLsVcCgEaWIy3Ga1kCs9Pj1BgVou eETAD1Kace93r7bld1JcOoykJwmdEeNQd6b567WNlWqOJMytyl4gEqOx+RfI7++STaz7 d8WiXLQeQEuCe01HMtqFsrTJopkuQYUY7UetF/X16zSVu9Ac6gXTXRhIO2i3L3SaVbou Cju3TdsCK+gMN7LKClrPxs1deGxBu6NTofsZp4LnlYrUunaHT7GuB+5CDuJ5wRWl69ZZ nxaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=T8hqvwXzMDJqZ8Axnxfnhvq+3Bu/rfhoYjsi7PA4tsE=; b=SyE+Y6avvM9JnsZvLzl7sA7ZaBRmC6ZTJzMsisYDbqtIBpfqojKl1T37cTr72RsGN4 HXB4FcvE0ZaMa30dXUO4jThTHHTcdv/Z8W1OtXNgMOmI9I6OYq4obmPatI2Plx4kDDmu KrcFnJk01wEAmQlJoKxM9hRLLRil0BrF/O4k7axm7hXaYH38urkT58A7IZzExEYXN6F0 /bvIwl/fYDKh6eV369t91g0rdc17VSAAU6wsDaCrPt3xd6Vthn/X7FrdecI+0NO1YeCD dWCe1n9c7WShXYsbQvPkgroE44gnCEG/L8lY2qBmqXMIE2wOhh/ESrCXnahawwco5l7q KiyA== X-Gm-Message-State: AOAM533bnmP87DZikQpEahqOwrdhXZdE/Q0dEebiphTogf64ZV6tv1TC FGJOxQp42TizW1A7Uuxr5w8pTBLrV56C2A== X-Received: from shakeelb.c.googlers.com ([fda3:e722:ac3:cc00:20:ed76:c0a8:28b]) (user=shakeelb job=sendgmr) by 2002:a25:8e90:0:b0:637:3d1f:cc39 with SMTP id q16-20020a258e90000000b006373d1fcc39mr8923198ybl.321.1650722503481; Sat, 23 Apr 2022 07:01:43 -0700 (PDT) Date: Sat, 23 Apr 2022 14:01:41 +0000 In-Reply-To: <20220421234426.3494842-3-yosryahmed@google.com> Message-Id: <20220423140141.si5uke4wwzkbvssv@google.com> Mime-Version: 1.0 References: <20220421234426.3494842-1-yosryahmed@google.com> <20220421234426.3494842-3-yosryahmed@google.com> Subject: Re: [PATCH v4 2/4] selftests: cgroup: return -errno from cg_read()/cg_write() on failure From: Shakeel Butt To: Yosry Ahmed Cc: Johannes Weiner , Michal Hocko , Andrew Morton , Roman Gushchin , David Rientjes , Tejun Heo , Zefan Li , Jonathan Corbet , Shuah Khan , Yu Zhao , Dave Hansen , Wei Xu , Greg Thelen , Chen Wandun , Vaibhav Jain , "Michal =?utf-8?Q?Koutn=C3=BD?=" , Tim Chen , Dan Schatzberg , cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=ham 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 On Thu, Apr 21, 2022 at 11:44:24PM +0000, Yosry Ahmed wrote: > Currently, cg_read()/cg_write() returns 0 on success and -1 on failure. > Modify them to return the -errno on failure. > > Signed-off-by: Yosry Ahmed Acked-by: Shakeel Butt