From patchwork Tue Feb 13 03:16:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Waiman Long X-Patchwork-Id: 20285 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp302500dyb; Mon, 12 Feb 2024 19:17:56 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXrH5Ha9Gumfh+q0DgtgPnhEcfUIEOfUESiHJTPWP0AnF/kEexYEDjLou+DBz3AkPytc92ED2lCbabycP9cWkT7sEUD0w== X-Google-Smtp-Source: AGHT+IHo+GM7MjBdflG76e8dg22n461WEOqTiyCgQdxzYoUTvPxaAnFubFGaKxsdURf534YVEV34 X-Received: by 2002:a0c:b549:0:b0:686:abd7:7690 with SMTP id w9-20020a0cb549000000b00686abd77690mr7735459qvd.19.1707794276359; Mon, 12 Feb 2024 19:17:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707794276; cv=pass; d=google.com; s=arc-20160816; b=F2XWJwVs8s48Y+EslthUwbk7H6zWQTDqP18FCsQeav8lAznyKfakLw3qgAOuLRiLgG 5LXbCT4titzfPRQa6rWw1j828cQmbzuCyjPU9RRAqwrGq5aBVN6ok8LPJAoDvWDWe411 TKEtSTyUCS6P60qsOr4J2TTpRyyfw5/HPxTi7SMFhOj42ndjGK+/rfY/DCnt+1neuCbJ UXCGHVRCBSFcyeDzDc3r3mQ1TngqG2eKYVmHWwwSLWfcTKIzqPtuXjFg9htgbiipPQQV EoxSHaCWtzP42JfW2VTTWYrrTb7N87xrDADHJlIsj3Whrdutz0opZfvhVqODyqKNKAhK aYOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=j8JzdnskN++AwAUpZbIrZ2/Bzk43WRvT61K84t7fBEY=; fh=yv0QQYX/XpIdKBfZP2AhSYToEgUCGMjhc0IrR/EpIPY=; b=g3dMmur60b+OH1kTbmoT7jLC0Bv23yDFQMym9QtAibbR0M633HoHtTZkGdcmpmvFzF ZeHQ3ZV1+xLkdiIehZGz5NhRRUE+zRHbioGAJ3HoR/ihsgHhLX0/zeMEWtUX6JZzyw8H ExO8TENUCk5sIhDy2Pm2+T/kXm0DTLoDssUUY3Ox8zTFV/K62bcNJbKBzbpf0GFmBvR7 bLPRMUeuObx6/DAvlF0nIbRErXmzKRQhfP9ZbspXLbRuGWXk4QAUBu2GpdH1pGgXNjN1 8GgbslgV23yLWratO9Dtgq8W1sBbDEYRDlsrLL4uT3aS4ljOe4yKOLF5uAwZiU55AQ+s bYpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=J5BSFnse; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-62898-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62898-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Forwarded-Encrypted: i=2; AJvYcCXqjFvpTwUAsufCaNDw7v6ZhNg6njmzLY5GmrXPREFfm7A3aEpa+oaFICRo7FjRIbrPeaDfOXdDv8OtmlM8S1YL/JysaA== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f11-20020a056214076b00b0068c5c709faasi1918793qvz.171.2024.02.12.19.17.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 19:17:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62898-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=J5BSFnse; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-62898-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62898-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2A4621C23448 for ; Tue, 13 Feb 2024 03:17:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B31EC8D2; Tue, 13 Feb 2024 03:17:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="J5BSFnse" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A08C48BFC for ; Tue, 13 Feb 2024 03:17:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707794235; cv=none; b=bcAtasYKG/XxqVvHSH3T4PQlhHTpW42IiNpNcx1Ad55bu8rd+XGgaT/zQJDpjf6kC/d2cwdzcZYyZnALp1o5jAQs1lWIUUVnbTspN5YePtuydcylhpZVeZEzD+WociowqlA4xjnzvFQei5Rd3KhfajI2USQ85wFs1Rhml11tZvY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707794235; c=relaxed/simple; bh=F1m/aD6lzCMWutOEh5r7wEcTmpqLVziRfs8NPgMbPwQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=jXBe8Dqc9IIMYPHcCx+unCpwHNczEPFSacsgpsjySU/Gijsh6NpM1QIyRPuusX+CNd/qyINhxy1JyNJySA3ZFdRMxvkUsFXcOnP7XXbpt3zZlciGKsErd9XTiQnrKyjfYxDfKLP/97qw6Ie6FA8fe4d3htR5q+CudahSbVr7BNw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=J5BSFnse; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707794232; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=j8JzdnskN++AwAUpZbIrZ2/Bzk43WRvT61K84t7fBEY=; b=J5BSFnse1WLzcycPcS2yScjAkYH8aeTQfLOyCw7tV54aPoX0oj/mPM1gUYg3/YFg9DCxXw wk7/AbY7IZdRq9pM7P73S+Y0bIIyTEGVcqLUhN2pNVm3nHi6wCcYFpB8jkf3PUB4ksfMVb d1UvpC0KuwSDknz2LmZgE+zMUTlyv10= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-17-go-GN1tgMwG2tSyP-yXtLQ-1; Mon, 12 Feb 2024 22:17:08 -0500 X-MC-Unique: go-GN1tgMwG2tSyP-yXtLQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2B5841C04B5A; Tue, 13 Feb 2024 03:17:08 +0000 (UTC) Received: from llong.com (unknown [10.22.33.62]) by smtp.corp.redhat.com (Postfix) with ESMTP id 98A0AAC17; Tue, 13 Feb 2024 03:17:06 +0000 (UTC) From: Waiman Long To: Peter Zijlstra , Ingo Molnar , Will Deacon , Boqun Feng , Andrew Morton Cc: linux-kernel@vger.kernel.org, George Stark , Waiman Long Subject: [PATCH 0/4] locking: Some locking code cleanups Date: Mon, 12 Feb 2024 22:16:52 -0500 Message-Id: <20240213031656.1375951-1-longman@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.1 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790752090850729973 X-GMAIL-MSGID: 1790752090850729973 This series contains a number of cleanup locking patches. Waiman Long (4): locking/qspinlock: Fix 'wait_early' set but not used warning locking/mutex: Clean up mutex.h locking/rwsem: Clarify that RWSEM_READER_OWNED is just a hint locking/rwsem: Make DEBUG_RWSEMS and PREEMPT_RT mutually exclusive include/linux/mutex.h | 23 +++++++++++------------ kernel/locking/qspinlock_paravirt.h | 2 +- kernel/locking/rwsem.c | 6 +++--- lib/Kconfig.debug | 4 ++-- 4 files changed, 17 insertions(+), 18 deletions(-)