From patchwork Thu Mar 23 04:26:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boqun Feng X-Patchwork-Id: 13184940 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29622C77B60 for ; Thu, 23 Mar 2023 04:26:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229682AbjCWE0p (ORCPT ); Thu, 23 Mar 2023 00:26:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229842AbjCWE0l (ORCPT ); Thu, 23 Mar 2023 00:26:41 -0400 Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06192231CE; Wed, 22 Mar 2023 21:26:32 -0700 (PDT) Received: by mail-qt1-x82d.google.com with SMTP id s12so25286194qtq.11; Wed, 22 Mar 2023 21:26:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679545592; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:feedback-id:from:to:cc:subject :date:message-id:reply-to; bh=5S62Y7aGNi4D2I6NuRPT2zIYY8rxE7q2KUx5uJfic1c=; b=kk4foQ5cUez7Q/oiDN/UXNlIrxxKo4KIWvzA92IiWkcQHqZRlSZSQ8Ao8nUkMOTjzr FCyqMnEsxvvwV7V2DbywfboQs2mlt1DbMEr5qx+rk1iUhVJzo6X2zWwsU7DYmza3Dh8L Umpv9zqiP22nRhb9/yfEmW6XKIF6FLxHVzfLAmqByAixnMxJiqdOSuKLnl9NLryaagyR VO8thFWslhb7nNfbqHiERNKgwxtfJ0JsDM1QUOFVu10WDHo/SY+rMdPs1bLiqf3MlWHD btfrXf4ZYZSUWOdpJORD/xbwwvDPjl0RBvt2L1C958BMkxxCl94/Pb2RCZ1ymeQQ2RWn pWSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679545592; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:feedback-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=5S62Y7aGNi4D2I6NuRPT2zIYY8rxE7q2KUx5uJfic1c=; b=Zg6vQEem6JmI0jRnXpRfYBnZ1Hhu4r1N69eRPPWJoPOZDDeuU/gOs5rAZU/MkzAMPc 3iMqTKeWUHzK4afMwUDcLksVXy60T1YPnq0jVy+7bYyuEVxAVIhFePgz2/Vl7eG2vWN6 lME4qX5AbL04DYl5OPf1V3AQdIUQW4L2cTDuw9bp0LMFJ/bsgs5obJps+xUpatmfc44i +5Yn2B6A+RVk8IzCNSDtjMPNdaeC+fR8pZ7V2KBB49+67PK9ygXc069iD9znD2ilC8M3 xKpat3KWTBu2AzcknbHpc7llaW+AiNiVyjGxU8IinEbsgX9oatZVWnwSoJgeBcleHD8C +SPw== X-Gm-Message-State: AO0yUKVpEAY+co9kDGi5o3cqTkAPxrKEsFcx5RvcqNgo2MwyMLhBKWj1 zljLgRteHaDYPmDFPEecEG0= X-Google-Smtp-Source: AK7set8pLmScoz61lyaelKl/XvtQOLXjV1jHCbylxOnTNY112i4/NMiid4SJ4puYLBZcDeFHyrsAdA== X-Received: by 2002:ac8:5ac9:0:b0:3e0:d161:29b1 with SMTP id d9-20020ac85ac9000000b003e0d16129b1mr6906050qtd.24.1679545592087; Wed, 22 Mar 2023 21:26:32 -0700 (PDT) Received: from auth1-smtp.messagingengine.com (auth1-smtp.messagingengine.com. [66.111.4.227]) by smtp.gmail.com with ESMTPSA id 142-20020a370494000000b007468cc74c77sm6600464qke.4.2023.03.22.21.26.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 21:26:31 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 02DC027C0054; Thu, 23 Mar 2023 00:26:31 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 23 Mar 2023 00:26:31 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdegfedgieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepuehoqhhu nhcuhfgvnhhguceosghoqhhunhdrfhgvnhhgsehgmhgrihhlrdgtohhmqeenucggtffrrg htthgvrhhnpefghfffvefhhfdvgfejgfekvdelgfekgeevueehlefhiedvgeffjefgteeu gfehieenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepsghoqhhunhdomhgvshhmthhprghuthhh phgvrhhsohhnrghlihhthidqieelvdeghedtieegqddujeejkeehheehvddqsghoqhhunh drfhgvnhhgpeepghhmrghilhdrtghomhesfhhigihmvgdrnhgrmhgv X-ME-Proxy: Feedback-ID: iad51458e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 23 Mar 2023 00:26:30 -0400 (EDT) From: Boqun Feng To: rcu@vger.kernel.org Cc: Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , Lai Jiangshan , "Paul E. McKenney" , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Davidlohr Bueso , Frederic Weisbecker , Neeraj Upadhyay , Joel Fernandes , Shuah Khan , David Woodhouse , Paolo Bonzini , kvm@vger.kernel.org, seanjc@google.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel test robot Subject: [PATCH rcu v2 3/7] locking: Reduce the number of locks in ww_mutex stress tests Date: Wed, 22 Mar 2023 21:26:10 -0700 Message-Id: <20230323042614.1191120-4-boqun.feng@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230323042614.1191120-1-boqun.feng@gmail.com> References: <20230323042614.1191120-1-boqun.feng@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: rcu@vger.kernel.org The stress test in test_ww_mutex_init() uses 4095 locks since lockdep::reference has 12 bits, and since we are going to reduce it to 11 bits to support lock_sync(), and 2047 is still a reasonable number of the max nesting level for locks, so adjust the test. Reported-by: kernel test robot Link: https://lore.kernel.org/oe-lkp/202302011445.9d99dae2-oliver.sang@intel.com Signed-off-by: Boqun Feng Tested-by: Paul E. McKenney --- kernel/locking/test-ww_mutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/locking/test-ww_mutex.c b/kernel/locking/test-ww_mutex.c index 29dc253d03af..93cca6e69860 100644 --- a/kernel/locking/test-ww_mutex.c +++ b/kernel/locking/test-ww_mutex.c @@ -659,7 +659,7 @@ static int __init test_ww_mutex_init(void) if (ret) return ret; - ret = stress(4095, hweight32(STRESS_ALL)*ncpus, STRESS_ALL); + ret = stress(2047, hweight32(STRESS_ALL)*ncpus, STRESS_ALL); if (ret) return ret;