Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp125949rdb; Wed, 21 Feb 2024 20:36:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWXbZCxKR5FKmWc8qu3OqDENfZ1qPJjVrBJfz4O24/GorxBczlwmAsn5clhTMjzHzcS6bHD6rZwLZzTOeP7Q2LaECFwiehsZwp/DRgtAw== X-Google-Smtp-Source: AGHT+IGKqnpcwGIzxWEHFmELyEAx4a98w5iEhuKFcI8C0u82QALc9Duhpt6S4lOvrnRnFDRxqA/I X-Received: by 2002:a17:906:1915:b0:a3f:5628:e369 with SMTP id a21-20020a170906191500b00a3f5628e369mr1770769eje.51.1708576599298; Wed, 21 Feb 2024 20:36:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708576599; cv=pass; d=google.com; s=arc-20160816; b=0GA0RnMV6MgSZAlhuSypd3fPz47ONf/zy+lmFGTIyH86QxtgC77uwfoIwjg0vY39q0 Z+2pyOL1HaxfuMxq/HKQRmrZCz2dnDa63ARTt5uzmHMfPMQe4mKEdtrGNRkUe+dkAdgx zGafCJdwXLg+qTicUFygap23CCjaBs61UfzVdK0NxHO6Gtc0u94re+1Do0Pj5ywuKgP5 +hZ07gWMgBc/xH7J23qagzvSlD4q+MCi13XRYDec2/tAY8QuUk2IuMhBGjlP8akuYp82 bf2t7gdLEx9ffb2zVfiCXm6Diqa6ONzWSx0cRbldnFVk31o4QCU+EXT1gD3JOcGxsSnt NeMQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:feedback-id:dkim-signature; bh=/wj82xEL3MXTSUC7EkK9OL5XKxFUXCZ97I1b2wdmhvE=; fh=cb2QVLpJU04zebE7fhVpXnFIWNkMlova15KlXwAvP/0=; b=Zm+xboERKZwQX3weJE+1zF2EUywO9CvXjp8kA90a+WR2AjTduaFYK1I2hgpgw/Z09I Ur7ZBi/4jVxQJjDQzlbc/K9incZfnWyizTQXBl+osL96EAkke1owFdqA++wW7boVlfq/ Awqeaq0i+Bh9fthxsa0vWPFoaCxKvRiiWg403My1OU9O4FiXFQoDh5XvWY3psZOpQrvG My+CKJJoiAnx+EHPUJEOQ8OPNz+BC2nNAg8aojPLeA8G9TLA3PECPjyMsOHmRXFIvROa yS78TDkV4kqAfS/k7zMOM+aZoDrz45O8BFBRslToTolRsILTYuWIeTENDjWciITZ4eTA XkkA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MlZfSV4f; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-75903-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75903-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ha9-20020a170906a88900b00a3e999a1c02si3269891ejb.787.2024.02.21.20.36.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 20:36:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75903-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MlZfSV4f; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-75903-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75903-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DD25C1F23997 for ; Thu, 22 Feb 2024 04:36:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E612C1C14; Thu, 22 Feb 2024 04:36:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MlZfSV4f" Received: from mail-qk1-f176.google.com (mail-qk1-f176.google.com [209.85.222.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9AA9610E5 for ; Thu, 22 Feb 2024 04:36:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708576592; cv=none; b=H6ez4AwClBXTEZrCHImqzPV2FpT3srNPRqhlkRNeCJ7JTxhH7NWqmJyEtqHiEzrZ+B/M1X/Z4tIlLDlCoKaZXTeSXsLsxkfwYEAi9aFJXau4CgJK8LCSUVnDyA+V9RqKhcZeC6ghuk3gr2mwhxCL6vvDoh9l3tPc85C75moW2jc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708576592; c=relaxed/simple; bh=/te6BUN5uNGb3X5VKlBOeewCkUInzQPYhE0UrDEOiJA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uvMrxsXgt5gPDMmrp4yNQDUEhdOS/zNeOFl9sYaLFiLdMQP21ZAGb8eknm0CyI8sz5o1F23NzJWmGLTK50Vv9gdo2xqmvLLfLTlL/0e+U2ZfOdDQGeEBJKijIOXN3Mhc+9YjfBIoVmMweQtm0JRN8DgKyDuOhrqrq63lrDpzaZ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=MlZfSV4f; arc=none smtp.client-ip=209.85.222.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qk1-f176.google.com with SMTP id af79cd13be357-78725b62cf2so363244985a.1 for ; Wed, 21 Feb 2024 20:36:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708576589; x=1709181389; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:feedback-id:from:to:cc:subject:date :message-id:reply-to; bh=/wj82xEL3MXTSUC7EkK9OL5XKxFUXCZ97I1b2wdmhvE=; b=MlZfSV4f8P0EYrlY86nLs9xlCk0bfZPFYGHFSW4qcAHBTs/LmWS9D6P8LBuK6vJ+pw XEZugNqQn/hV5c6MRSvghBEYKjdQZCQRTTx90XSvb6GanDNPNbWT3LDShAk4Ft9eyctU PyvYpglndC0X0j0lOP3BSFlweM1awTB+/74SDgLMPFdw/xgZRyRR3z9qS0U9OJNoFScK 3Sp+nD3XcF1TB8w74QIdn3V0QLVzDNZN8qwPqeiyaL4EcwZxkQWBPUsohibV+s6bxdqX asNgwN8c9xvCUZXJo7ArlBv3s6XKUcD0XBdfFUT4dIOS8hYILEccDSRQG5wB2WmJvRGp yDbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708576589; x=1709181389; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:feedback-id:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/wj82xEL3MXTSUC7EkK9OL5XKxFUXCZ97I1b2wdmhvE=; b=EaS5daCMkG9Hy0vBbCnJA3NuhBAwYqS1nppZcNjWIu3cqCPy5IJPJ1gSVv7xmB9MRJ He6H9kIfNz/mFEcchGBUIrX3svJt8NY0HEeDxZ0NU4fxBp/p2FOjrG2+BVExAs8bHO2B 97ufjrA88aSMX+RZlFyyKgLxVc1bi5t8ext2sjEsb3DVyei3cID4KADFGh1O+uMmTbPW /lHgP2Y5EQndegtCiHx3ZmKMvVdgmccOefYF7gOO+TWDDj98WfGrFxNiTJmbVzd81JsJ HS9rFSJ/v7KjHfXvq6IKcxDrcDv/GucVIQ/YIwLSqU8TT53sRHpAbQltctGTr8w2Acfl kHqQ== X-Forwarded-Encrypted: i=1; AJvYcCXgL0Uoy/Brsc/j+bFkICXEnE0oNTlCTOeBOgcfDBwGS2GOArOgZXtgHjllgCVC+HSSmx9y1oUaVsm4prrGTNBcGoADNVITS0C8FZQr X-Gm-Message-State: AOJu0YwxCtIfvULI64SdpXpdkOUuQZLkZ3BezPg0xZex82brn6+cws2e 8A8BFxWT+zMRZonUTO67IgFy16Sp9skqQq82abwNscOIL9YcP2dh X-Received: by 2002:a05:620a:470c:b0:787:94b6:a97d with SMTP id bs12-20020a05620a470c00b0078794b6a97dmr2229446qkb.54.1708576589473; Wed, 21 Feb 2024 20:36:29 -0800 (PST) Received: from fauth1-smtp.messagingengine.com (fauth1-smtp.messagingengine.com. [103.168.172.200]) by smtp.gmail.com with ESMTPSA id u8-20020a05620a084800b0078783b32229sm1275370qku.7.2024.02.21.20.36.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 20:36:29 -0800 (PST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfauth.nyi.internal (Postfix) with ESMTP id A73F41200043; Wed, 21 Feb 2024 23:36:28 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Wed, 21 Feb 2024 23:36:28 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeefgdejudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeeuohhquhhn ucfhvghnghcuoegsohhquhhnrdhfvghnghesghhmrghilhdrtghomheqnecuggftrfgrth htvghrnhephedugfduffffteeutddvheeuveelvdfhleelieevtdeguefhgeeuveeiudff iedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepsg hoqhhunhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqieelvdeghedtieeg qddujeejkeehheehvddqsghoqhhunhdrfhgvnhhgpeepghhmrghilhdrtghomhesfhhigi hmvgdrnhgrmhgv X-ME-Proxy: Feedback-ID: iad51458e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 21 Feb 2024 23:36:27 -0500 (EST) Date: Wed, 21 Feb 2024 20:36:05 -0800 From: Boqun Feng To: Waiman Long Cc: Peter Zijlstra , Ingo Molnar , Will Deacon , Andrew Morton , linux-kernel@vger.kernel.org, George Stark Subject: Re: [PATCH 4/4] locking/rwsem: Make DEBUG_RWSEMS and PREEMPT_RT mutually exclusive Message-ID: References: <20240213031656.1375951-1-longman@redhat.com> <20240213031656.1375951-5-longman@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240213031656.1375951-5-longman@redhat.com> On Mon, Feb 12, 2024 at 10:16:56PM -0500, Waiman Long wrote: > The debugging code enabled by CONFIG_DEBUG_RWSEMS will only be > compiled in when CONFIG_PREEMPT_RT isn't set. There is no point to > allow CONFIG_DEBUG_RWSEMS to be set in a kernel configuration where > CONFIG_PREEMPT_RT is also set. Make them mutually exclusive. > > Signed-off-by: Waiman Long Reviewed-by: Boqun Feng Regards, Boqun > --- > lib/Kconfig.debug | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index 975a07f9f1cc..cb695bc76d30 100644 > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -1303,7 +1303,7 @@ config PROVE_LOCKING > select DEBUG_SPINLOCK > select DEBUG_MUTEXES if !PREEMPT_RT > select DEBUG_RT_MUTEXES if RT_MUTEXES > - select DEBUG_RWSEMS > + select DEBUG_RWSEMS if !PREEMPT_RT > select DEBUG_WW_MUTEX_SLOWPATH > select DEBUG_LOCK_ALLOC > select PREEMPT_COUNT if !ARCH_NO_PREEMPT > @@ -1426,7 +1426,7 @@ config DEBUG_WW_MUTEX_SLOWPATH > > config DEBUG_RWSEMS > bool "RW Semaphore debugging: basic checks" > - depends on DEBUG_KERNEL > + depends on DEBUG_KERNEL && !PREEMPT_RT > help > This debugging feature allows mismatched rw semaphore locks > and unlocks to be detected and reported. > -- > 2.39.3 >