Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp392462lqg; Thu, 11 Apr 2024 06:24:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUuCDOTk80KQlJflqTJTfy3fU8Lt2LNsgNmEAsQemydURIbDhf+Q50tLhUoP8c6Dd11xWUD00W3pM3B09d/AEm2jbcBC4rjlDaHuWwW5Q== X-Google-Smtp-Source: AGHT+IFl8juZMBC19SWofW3kpQmcDwvDPxSFqrBbyEN2UzBe7pCgZpcIotBHWGzti5uzncXSbxy/ X-Received: by 2002:a05:6870:9604:b0:233:3706:15a4 with SMTP id d4-20020a056870960400b00233370615a4mr3680819oaq.0.1712841880190; Thu, 11 Apr 2024 06:24:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712841880; cv=pass; d=google.com; s=arc-20160816; b=vJgG1uJ/WmlDGGcL7iTwc0CGKHBAgKrzDAealY6aa5/RTa4HsbDMiKxKu9RqdKC2JV kv7tCo2ptXgNlIMtJpkaC/E5lhEe8NDWU3BYFPFTTf1WwDzFhnJyx2e7Gy/sA/Nqh8d/ cQ0yE/p83vBsEUgHsr4XlJCLNMa1PF9RxrhHQe8AVzIgQa2yeBF6g1sQjEq1ToLjOjMd 3Y/0GnIV8tJkq+x3QgLpE+y/vPZKd7mV725DlObZz3nTS607HCnGEzlKdpRfjaSy+ppl GKE/S/xibGDnuGqz7LFhi5ZwwIbG7hYHp8l825UUqDAtPAgP9Z+YeWbSNKvCE2iZvFOl oAQg== 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:sender:dkim-signature; bh=NbrCLN/o3uLqGtj2Srsmto4A+87xT0bJjv93ZpQuVUU=; fh=e5HGGjls2yiV0HPQwr7ZLGZ4cBpQ3WOfg40ccIYjSZQ=; b=k4w15u05SH5eVqi05KNpkYSW+Lm06/1NlLoY/mU8RH1dcpUrV2fip6XCqgQc/7sqNo T/34s1CgqBbICLmOXuO0st0IjGZ9SZfvU5HMztqRVAzZziaSDGU18NWyEhYULiFIhuLD K2TNp6n5LTKYdibJNodvEAxJ4d31lPMQ1Gfyz9k49wQz+hlN+yrt43BMfB51FHuKqS3p eLwHhpPpvQvgTfmyTHfrDdnS493oQXx7cqrgVMNqlHe5BQs1xNVZr02hQgv1COxaBHHB qgylAZeJ4AQskD2EGOYDjKY5RG4rPJeBkNuAIdcAucqUWEF/d8FLbroEmZgD9iS8aegZ gJ6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TGv1JiG+; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-140498-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140498-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a8-20020a05622a064800b0043674bcb287si516941qtb.132.2024.04.11.06.24.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 06:24:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140498-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TGv1JiG+; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-140498-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140498-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E0E611C216D5 for ; Thu, 11 Apr 2024 13:24:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F5FF14D296; Thu, 11 Apr 2024 13:24:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TGv1JiG+" Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (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 E15AA14BFB4 for ; Thu, 11 Apr 2024 13:24:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712841873; cv=none; b=fMuRUOYEMoBHz4Lx0lKRg/hLYvb4GXvbqqvkNhw6cHzl0KKmCB/94j2vUq9KJLfbyp5Pe5i2JK0bnFSw0+k0ex3QjZwBqXfuByQgdrYURhZd8Hqa6nmx499fgoSUwAzS8KbVB9uv4O68Lsc4zun0hMdJBCdiS763xVWMvQS3WRk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712841873; c=relaxed/simple; bh=6AY+MhgizkgOhIC+iJqAT45UnLhe61L7WgN4TAFZoMo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Zu+h/tQUvm89UMskisd/RQrt8E7pJxhOMRYq+DX69SU4aF5ndTUMqM4PsO2OwZN8hD5neR/ZuCjAklMb8JkJD1Qxxb1Iy82W6WiLO+eiBBAZcRLIb1khwAgsGwLywv54XxTZP9QbVOzpzGfn8vWuHpeLxfSUdGaUumSRjbLyJXc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=TGv1JiG+; arc=none smtp.client-ip=209.85.208.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-56fe7dc7f58so586027a12.2 for ; Thu, 11 Apr 2024 06:24:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712841870; x=1713446670; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=NbrCLN/o3uLqGtj2Srsmto4A+87xT0bJjv93ZpQuVUU=; b=TGv1JiG+1OMslMY/vhoweIDcsMFtxFOHXqi7rdk+/hymoSO5Q7BOxhSaq06Nj6+1Oj 05GSD2Jqx679aq6DEJIpNbwkOOWVYEE/k63tsCUvM452ZmnuxOVKPrQjuv+0p2lq9Ga0 4k/1NHoGA1376sJQ2FDzVDMGTW5hJJgY1fbDMUwr5huMdsy4qc61gOE3AT9nMt063EyG DHQgVlVFd7r8QX1tauq+e1jbmv2AGZxknxQp9DODVk9PpjN0YQVPHDvF7FlZ/fb9l3ki fV4ZuNfAADRF4KvBE2EYkG+H26XlfobSBWqf6oA7fLf8f236gmEDimcdE6C2gncyO6aZ iP9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712841870; x=1713446670; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NbrCLN/o3uLqGtj2Srsmto4A+87xT0bJjv93ZpQuVUU=; b=oPZPjczPlyNGOVyS1lurBGlYrVenwoYJEvg8LSwzb4oxm83dL5B0Qfc2PMIT0eLYQZ D7y679qFS1X3doSFalhYa5uwz1WHnDfns594YOENdxVrujhScE+npcbGqYd1OhQljTtS FY+KunNssDmYNKhWPY3eBvR+k+YiPIBmmGVNGSYmbjs2wHToviamtXpvvmu9rgNdkk6i Lp+5otMNVQuV4aNRAZxN63/aj78s/81SmHJpZtIzCe+nUW1GPaf+va4FRWSPBxeIMtNm ogHhGa6BWRsg3HF4aIJdt5GchWcc+svOCYYxBx7FMeNKCKWtYPmGiG9JQa6pwqEcc1lT o6PQ== X-Gm-Message-State: AOJu0Yyk+kCbf2U8AI+BdQwS0AcwuiIXvVZUd82dIi0RC8uidyAQbG7o 9s5jbwsRwQgogf4Ky/aCeNk6YudLOC0lKhO5cMy1HZiRnGymXJGQ X-Received: by 2002:a17:906:3088:b0:a46:cef3:4aba with SMTP id 8-20020a170906308800b00a46cef34abamr3525583ejv.75.1712841869613; Thu, 11 Apr 2024 06:24:29 -0700 (PDT) Received: from gmail.com (1F2EF1A5.nat.pool.telekom.hu. [31.46.241.165]) by smtp.gmail.com with ESMTPSA id jw24-20020a170906e95800b00a51adace6ebsm756318ejb.79.2024.04.11.06.24.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 06:24:28 -0700 (PDT) Sender: Ingo Molnar Date: Thu, 11 Apr 2024 15:24:26 +0200 From: Ingo Molnar To: Uros Bizjak Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng Subject: Re: [PATCH 2/2] locking/pvqspinlock: Use try_cmpxchg() in qspinlock_paravirt.h Message-ID: References: <20240325140943.815051-1-ubizjak@gmail.com> <20240325140943.815051-2-ubizjak@gmail.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: <20240325140943.815051-2-ubizjak@gmail.com> * Uros Bizjak wrote: > - locked = cmpxchg_release(&lock->locked, _Q_LOCKED_VAL, 0); > - if (likely(locked == _Q_LOCKED_VAL)) > + if (try_cmpxchg_release(&lock->locked, &locked, 0); > return; ^------------ ??? This doesn't appear to be a particularly well-tested patch. ;-) Thanks, Ingo