Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp622111iob; Wed, 18 May 2022 09:19:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3T5x6JnuGPglKDFyfSog3YRKGMg5MZyxDiQUYFZe/r49drZXWVh32/cboBWfyW0BvoMc6 X-Received: by 2002:a63:e40c:0:b0:3f2:5729:eace with SMTP id a12-20020a63e40c000000b003f25729eacemr224218pgi.384.1652890772530; Wed, 18 May 2022 09:19:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652890772; cv=none; d=google.com; s=arc-20160816; b=MQazUoA0az4bAkx9y9KRLHqXzdktrmil7b7kBvbUOaufgrCc2DjvXnFs3wga8RK9aS veeTvyo3HuCKQfotDQWg2drzuEGQRVikokf9Ytj7FkAI/PSI4BSd9jiQaIJCAgr3jeEV ZaiXA+jx1YqX0uRfWkqzz16cazflkWUfmKFg2jwPR3psnPt9XRnJsGS07B8fqErBEGrk KnVqDMrH1heIVMDP9lYXAfJReOVFTY9cHdo762w+RLCCGvL8Keq9VAGCalW916vgd+vM 5qJJQSdPVCK9dldUbo9/fYi2N7kba2b8W3ju9+YGqjl/mLCg9PWwMwvgo1U/BnbqsGbQ zY/w== 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=jls1PyA3lNVBvIKTWLQV+noOjsW0JRyRuYrTGWjwMDfjPQK8jJ7Uh4vXm4/RkpZjpW TTiJmjZfShthxa/hJsG2nArchD5dPANBwWT69Ld00Fs9WqCFOan1aZV5IFW7EW/Cenj5 S4HHJrWksq7x4uH8KHEDR2H2P4HdBspaIDSrGWMk1Hudq+nfAswZExO3nLIJe3N43i9j z41DpfGYcSIttB0L5G7aSyWCmoaNB4XHAZkjjGwzOQPVDWRr8gKL8QfYnsJCmpXpQLRo bzMf12qpxCXGDoopP6wx7/d9FDSk6NBQ8YFPxTAlj4jqmd6ve08rY1qksH2DCeXwwsxx 0WNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=T1leMHYS; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d31-20020a631d1f000000b003c62382723fsi3199640pgd.764.2022.05.18.09.19.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 09:19:32 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=T1leMHYS; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 090BA1EE0A9; Wed, 18 May 2022 09:19:28 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240010AbiERQTW (ORCPT + 99 others); Wed, 18 May 2022 12:19:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234867AbiERQTO (ORCPT ); Wed, 18 May 2022 12:19:14 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8D591E3EF9; Wed, 18 May 2022 09:19: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-out1.suse.de (Postfix) with ESMTPS id 77C0D21B89; Wed, 18 May 2022 16:19:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1652890752; 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=T1leMHYScHQXCHXKxIS31MNB010gnhRdlHC98iwM804mCi19qxcC197VPWaP36dT0zb3wp 0FBkGKRx1AWNjpOA5TzOlVxHWCH/c+KxuCpt0JLj85qx9CLmRWKvJNKOQ4bgeTS1NXGGh3 YA71RSOsklz1HPm+85BDiDjO8A7stjo= 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 49BB013A6D; Wed, 18 May 2022 16:19:12 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id MKsOEYAchWLqZAAAMHmgww (envelope-from ); Wed, 18 May 2022 16:19:12 +0000 From: =?UTF-8?q?Michal=20Koutn=C3=BD?= To: cgroups@vger.kernel.org, linux-mm@kvack.org Cc: Johannes Weiner , Michal Hocko , Roman Gushchin , Shakeel Butt , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Richard Palethorpe Subject: [PATCH v2 2/5] selftests: memcg: Expect no low events in unprotected sibling Date: Wed, 18 May 2022 18:18:56 +0200 Message-Id: <20220518161859.21565-3-mkoutny@suse.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220518161859.21565-1-mkoutny@suse.com> References: <20220518161859.21565-1-mkoutny@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 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