Received: by 2002:ab2:7988:0:b0:1f4:b336:87c4 with SMTP id g8csp99135lqj; Thu, 11 Apr 2024 10:54:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUcdfUptUPkcAs2+S5T3Hi2VGvMbmUkS604t4f4ONTxgJnabqjhMr2XfbjNuXxP4HVpoBJRCdmAyQFuRLu7kEn7yjI2yYFQIFQQFCdJbQ== X-Google-Smtp-Source: AGHT+IEWjXFAq2KGAVHmBjC2bz2ychR/PfVs3gdoEJwmWZgbQzEJ+0xidpjHDWP8SVe+dl8syp7V X-Received: by 2002:a17:906:4097:b0:a51:f472:fee1 with SMTP id u23-20020a170906409700b00a51f472fee1mr246965ejj.22.1712858093538; Thu, 11 Apr 2024 10:54:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712858093; cv=pass; d=google.com; s=arc-20160816; b=kFyfPbz7Ras5Cv8+XBTxz6FNtnNxawLk/SH+kWctqzUEQm+TKVQ1jNLEGNWqn7Y3q+ TlQzGDYcchxVJ4gXW7xDT4/ebR3dyXxOJO404cS1HaAYaajCsz1S31E/aLTFtpki/V9z I/VgFzJziHF0hqO7qfQFGCXdLWsQsCwDAY1w7grXPc3h7PHWnNolUF8KBDay961eA0Zv PPDZFaW1vWuCkq/QGp+CeKCabHAU0anGg0L9jWiyL/lpBreXgjXXJWEa/XAfDfU/Rjth CqyLCnL5VkaLaYBWxFCgCkCrswoKjWmwDKqlDrkB+pFKI9qdxgLsgPfateDRGez/KC0u nSDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=p0E4Mcvm1Ca/K7JG5a2Gt1iCkk38ClaKkzaJEpcElfU=; fh=BYzI43vL5/+5ldNScapA58lkGa4AwL4tIJMACwu30ik=; b=euzTtjn+hN6bJrhTAj/EE2bvWPD4SsR56cx2gdaMdwEgqKVv51HCmkicwUyRnigD7V UEPae354N26InqUD5j3Q2M+FFEqGDCUxKRk+WNPlbxvottNkH153D7Mba3UPKD9vBmo+ KzbvmXYIWNL6/4xHh6JJ+FqS7Cqr8aLYO1l3qJCYoJsBvBgVAIcp/0LQJ/KVO9kvpC/B zmVQMbrz8KagdhzxtD8wY0UtC/BVbkgjlRKBmopPvju5RPn+70Udgwrs6YDI+pkAykL9 +XPXhM4iw7RH4X9nOCLH8K+yKnxZFcWBvFf67irL3VAYtRyzIra0Uly4GErqVOpp/xZx RRwQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=ZfdJ1k4S; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-141325-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141325-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ne30-20020a1709077b9e00b00a4e26173876si975464ejc.554.2024.04.11.10.54.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 10:54:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141325-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=ZfdJ1k4S; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-141325-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141325-linux.lists.archive=gmail.com@vger.kernel.org" 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 823D61F25E7A for ; Thu, 11 Apr 2024 17:53:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C29D1B758D; Thu, 11 Apr 2024 16:31:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="ZfdJ1k4S" Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (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 B474B1A38FC for ; Thu, 11 Apr 2024 16:31:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712853107; cv=none; b=iWUPrC7u3g6tfFPim6pbQAN9Bdgk1nTMUltgyzv8L1/+9CoCAqD85zJD+gGCRQ5jTSyz9HR2IZi2Zgen1pWm3n1F6A4/0NWc0MMWJjFHjMBETkg8kWkmW02XOT2Wjyu3iNW45ooY9PgzBtDOjcrTnSVyKoWgHAQagMBjFyalehQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712853107; c=relaxed/simple; bh=evOUe1w35ZtZ8Av7MI/0lyqOeulmgJE9vxHA7CRHUeA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=a9kopXTai4vWmJRFnqx4xjfX1MSIcvzD8DFZfePaDzsRVFq7QmUbSHidssgn10vm/foLJtzPAObw1gopm0R1D9MrTJ1CXOgmGw13d9jhnLpa+1XUF9wKNbq2/EYHXwqlLX6pLx88QpixweN9OCj5bMazdiv7bKVWveDqo2QsTWs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=ZfdJ1k4S; arc=none smtp.client-ip=209.85.208.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-56829f41f81so11714195a12.2 for ; Thu, 11 Apr 2024 09:31:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1712853104; x=1713457904; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=p0E4Mcvm1Ca/K7JG5a2Gt1iCkk38ClaKkzaJEpcElfU=; b=ZfdJ1k4Sqg4AVSPcimXMcjoQVbHBaqv/2ftg737ZM7VU3RngdiLMEXsmZNRwJMOmDU 7fPletejNBJ9VL99DZy+xDJezPQt6jzHQK+qNhNwyv4AjWb1No2uh9mzkPOTsp5tG9b0 M2dcPNumPqIZIIvuOFUVfIxctv8f0sAzT6gsE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712853104; x=1713457904; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=p0E4Mcvm1Ca/K7JG5a2Gt1iCkk38ClaKkzaJEpcElfU=; b=IQIeSvx1L2fzPyhxijfYVduaQMvoqemwz3Fl5A5Ijh4s2jgTSwbkuz6/q+1XH2eDyD GucnQt+0UQIFA35iLrDis3mRCZgInoy6hevTaOi4Tk/IxZaQilZFupLQy1/ILNcq0v46 PfuL5fNZmuU/urScTQ5OHPwo0bvpDVPiqObES6S85sSG24HcoGEIVBgDIZJsG/corxH5 6bQ9FY8hItG05TmV7l7XRhZrR2I8Ugt15MQFxYSDdGDmudUKh3K3qC3ewBv+6MwNQVYR MjHCaDH1DZtEnITYPofN9mOlGp5rAz6U9d5FTnJBojht8879TzsNb144P/81Q87xd0wl hbsQ== X-Gm-Message-State: AOJu0Yzf5QE1EL7A+a/dSzdtBpBsOsFbJzEC5e4ySOh/fmqD3hE9Lc0W X71ywsIfSCKEimJ1IggXwMo32otPaoLguC5Q3h+ZNSR5bPBJWrt3q0BBSCA2l/9YLYCwjiPg3HJ Eqwi8jA== X-Received: by 2002:a50:9f83:0:b0:56e:241c:3f3d with SMTP id c3-20020a509f83000000b0056e241c3f3dmr203617edf.25.1712853103979; Thu, 11 Apr 2024 09:31:43 -0700 (PDT) Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com. [209.85.218.46]) by smtp.gmail.com with ESMTPSA id b11-20020aa7c6cb000000b0056e7ba0497dsm826114eds.28.2024.04.11.09.31.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Apr 2024 09:31:43 -0700 (PDT) Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a44665605f3so893850266b.2 for ; Thu, 11 Apr 2024 09:31:43 -0700 (PDT) X-Received: by 2002:a17:906:f809:b0:a4d:f5e6:2e34 with SMTP id kh9-20020a170906f80900b00a4df5e62e34mr160576ejb.19.1712853102671; Thu, 11 Apr 2024 09:31:42 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240325140943.815051-1-ubizjak@gmail.com> <171284242025.10875.1534973785149780371.tip-bot2@tip-bot2> In-Reply-To: <171284242025.10875.1534973785149780371.tip-bot2@tip-bot2> From: Linus Torvalds Date: Thu, 11 Apr 2024 09:31:26 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [tip: locking/core] locking/pvqspinlock: Use try_cmpxchg_acquire() in trylock_clear_pending() To: linux-kernel@vger.kernel.org Cc: linux-tip-commits@vger.kernel.org, Uros Bizjak , Ingo Molnar , Waiman Long , x86@kernel.org Content-Type: text/plain; charset="UTF-8" On Thu, 11 Apr 2024 at 06:33, tip-bot2 for Uros Bizjak wrote: > > Use try_cmpxchg_acquire(*ptr, &old, new) instead of > cmpxchg_relaxed(*ptr, old, new) == old in trylock_clear_pending(). The above commit message is horribly confusing and wrong. I was going "that's not right", because it says "use acquire instead of relaxed" memory ordering, and then goes on to say "No functional change intended". But it turns out the *code* was always acquire, and it's only the commit message that is wrong, presumably due to a bit too much cut-and-paste. But please fix the commit message, and use the right memory ordering in the explanations too. Linus