Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3627800ioo; Wed, 25 May 2022 04:58:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyv58piI8rrbsy2HlQNYWk7QZ7XqhqSZjodDUw6EV78LSGpIaWEAhpx6l4KJ/DdW8N63wwK X-Received: by 2002:a05:6a00:1a4a:b0:518:bbd5:3c1d with SMTP id h10-20020a056a001a4a00b00518bbd53c1dmr10536122pfv.64.1653479927553; Wed, 25 May 2022 04:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653479927; cv=none; d=google.com; s=arc-20160816; b=cg4BZrVuv19p4b35nSlf+U/cbT+wii7zaWDhBs1cqOVX4jpN0juj1oM3d0x+4jz26p Zsw2YdDskXauIZoDn2QEtwUTNMXlxysne2gRpQKvD6UhJFrEFAzPijKAA/24/lGsXlm7 2+qs1njRYitEqMpC43ZStIjbz/aoFQZyQSXv+sPw2kcj3dC5loNzoyQZ+Eo8biy2nixY TCOxCWEn0mmxXRnsuSA1mfut3Nsnqw6vFwNHjUb7a59X283aWCQnq/1sr5P4DCy0PuUO FICm83Uvxr1Kx5RnQcpU8PjDQ1WZuvJryuvf46Jj0iVya047avNFhNwwToPNkHS0MgJN BZsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uw2274IZaH6wHNxtdm16PTTjUp+I1Z5ZIJ2mltVHUsc=; b=ky4pnZJUM7ZLEiAQD/yChq53Bql5zDXKvhi4MSLDCALy9qqV+B17JtiPTYRi3fU8Fx c+Pi45jDLSbK7aMIK/v106p/iQF+EKlDixaj3hm/u2hh6oKlpvXyKhMnszyJOl3pXn5h 8RQB+D2UndI/rCr5HpZnbRTgk+CRYXLzvUKd01rhGMBmJvWR70+yTIG3LYwGGGOVUJF8 FaHu3SjUl5ffuhf3BISIljpKtk3B3JCQlWKAOkklpje3tDbMtENhxIpXxPbEEwi5ebeq Q2XtdYzstcJjtqyx2o8jXrlY+NbwGFPriztfUFfipKVOdIbvhU9TltbLVyyIq1k67yLt CVGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=f3ITPDW8; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c17-20020a170902d49100b00161874c8db0si21463291plg.34.2022.05.25.04.58.32; Wed, 25 May 2022 04:58:47 -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=@suse.com header.s=susede1 header.b=f3ITPDW8; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239717AbiEXQaY (ORCPT + 99 others); Tue, 24 May 2022 12:30:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239666AbiEXQaQ (ORCPT ); Tue, 24 May 2022 12:30:16 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EF5A3FBE2; Tue, 24 May 2022 09:30:13 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (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 0E5751F93F; Tue, 24 May 2022 16:30:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1653409812; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uw2274IZaH6wHNxtdm16PTTjUp+I1Z5ZIJ2mltVHUsc=; b=f3ITPDW8ZmyDffQ+RVLr09F0AOIYDqQdoBUbftcYWElrvzH+ZGF3CYxF1+jhdvf2wcZ4Ef XgqgprPYXJzn0/sAOHQE43rbh8j0MnLZD2SH3GrisWY4is2X2s0YAdMzKpXus7fdFP5wLx qoDN+OL4+KqX3CJyL0rhGdXimAKXb3w= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (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 imap2.suse-dmz.suse.de (Postfix) with ESMTPS id C766413ADF; Tue, 24 May 2022 16:30:11 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id kHmtLxMIjWJaWgAAMHmgww (envelope-from ); Tue, 24 May 2022 16:30:11 +0000 From: =?UTF-8?q?Michal=20Koutn=C3=BD?= To: cgroups@vger.kernel.org, linux-mm@kvack.org Cc: Andrew Morton , Johannes Weiner , Michal Hocko , Roman Gushchin , Shakeel Butt , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Richard Palethorpe , Muhammad Usama Anjum Subject: [PATCH v3 2/5] selftests: memcg: Expect no low events in unprotected sibling Date: Tue, 24 May 2022 18:29:52 +0200 Message-Id: <20220524162955.8635-3-mkoutny@suse.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220524162955.8635-1-mkoutny@suse.com> References: <20220524162955.8635-1-mkoutny@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 This is effectively a revert of commit cdc69458a5f3 ("cgroup: account for memory_recursiveprot in test_memcg_low()"). The case test_memcg_low will fail with memory_recursiveprot until resolved in reclaim code. However, this patch preserves the existing helpers and variables for later uses. Signed-off-by: Michal Koutný Reviewed-by: David Vernet --- tools/testing/selftests/cgroup/test_memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/cgroup/test_memcontrol.c b/tools/testing/selftests/cgroup/test_memcontrol.c index c012db9d07d6..4924425639b0 100644 --- a/tools/testing/selftests/cgroup/test_memcontrol.c +++ b/tools/testing/selftests/cgroup/test_memcontrol.c @@ -528,7 +528,7 @@ static int test_memcg_low(const char *root) } for (i = 0; i < ARRAY_SIZE(children); i++) { - int no_low_events_index = has_recursiveprot ? 2 : 1; + int no_low_events_index = 1; oom = cg_read_key_long(children[i], "memory.events", "oom "); low = cg_read_key_long(children[i], "memory.events", "low "); -- 2.35.3