Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2958854rwb; Fri, 16 Dec 2022 08:27:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf60am3/nTBgadwmGfP6QQYEslHAkczsaIC2CNam/vmTd1j7Yn/P6iSQ8jzBfM6LKs1Xam3Z X-Received: by 2002:a17:907:c00b:b0:7c1:7d81:d2a8 with SMTP id ss11-20020a170907c00b00b007c17d81d2a8mr18269683ejc.3.1671208056307; Fri, 16 Dec 2022 08:27:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671208056; cv=none; d=google.com; s=arc-20160816; b=jaDjvgsiJIlmFQACTbHBYIhFpeYu25v+DBLF6CSrhxmj4WnMtS5QUkikC8yhevR+af nJF8KIGI6SaZtiqmBO3e7yLmRJccErC6fmIgth3OzHa0NgTqgWho0ZcQQv0Tb5qyYj77 c2lcuoZAl8hhUjE1RiUOGXMDglOXTEmmjxcvsu5p2uaO+wuz1NXhN1sVfXMBubb7cli3 dp1j+eg4iHMkqgksOs5AxZeL1+kWk6JbooJG17PQYMef7YSooOOgkYwlh37jxAQGs9// zlvnz91kMBvCl17Gv7LXcQ1Bt/jSRVQfQCuFgdcNnMIMITvV6DQUZLdhcvjOtUWziVMr qZyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=+MEibrmmCh/iophEg5CPI5D8t7JQfVecU9sRiaAK93A=; b=Ol2MCFjmvC2HYh8V5rsMH2bryLZnJBzg7gH0ig9imu/Ww06cPAl37RSJ24XH8GThJK EPtpjdq8UnQiA/o9T1ARSd7auVgHoh+BueM/36pkXVNJiOy5490/9Z5AnwGwtHiyc+x1 cAb4glGpJVPOFWyEC2RQjRMjXS7eevQEs2UsepwlwDawjIbfmSNE9yycpQrz7TMgLmli XP5o5bBlqgnDzNBsisQQmvwlvKm0yuR/z4E5yeBOjZt3yhj+byMG4jVYQTsvGdSmEIbX op63vH9Wb/Xtqe7AUlazs3iQiI2xd53UG2PKCE4XGb7Gz7G5l3oBBPL2PmySygrhLKf/ Zlkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=cEVV8iwS; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mb7-20020a170906eb0700b007ade4c97618si2417154ejb.930.2022.12.16.08.27.20; Fri, 16 Dec 2022 08:27:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=cEVV8iwS; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231320AbiLPQVB (ORCPT + 68 others); Fri, 16 Dec 2022 11:21:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231681AbiLPQUb (ORCPT ); Fri, 16 Dec 2022 11:20:31 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E7281DF0B; Fri, 16 Dec 2022 08:20:18 -0800 (PST) Date: Fri, 16 Dec 2022 17:20:14 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1671207615; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+MEibrmmCh/iophEg5CPI5D8t7JQfVecU9sRiaAK93A=; b=cEVV8iwST4jB0LztH86xpKsLGAedVX4PqoLvh9iyG/LPIXAmCN4CY2fEFIiV8HuYdQi43p RHW6rod4xspj+V25qLaQn4r9/K3xdBCiuHLJjree/R8lCuF5v+vGbGYFouT2zCd77oBnIP WM4gv2VB73rGKKk72NXCdpqf04BdScspQGbRJVKWQxDyY3rN+IttB9LbDKZBrTeVM+a0h5 UtWgI6s2b8TKpmYcknTFCX5blQm9NHPFiLzh4tKyy5DxLGgc/YI8MAq5MUmMwSij9Sdscp GVliHFE9UT8iLBXrtVZ52WaYejG/2gRVOB42/97AxIIRd9ikQHdQcaOmL7l1FA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1671207615; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+MEibrmmCh/iophEg5CPI5D8t7JQfVecU9sRiaAK93A=; b=hHeeO2kRBdDp/EV4zb6aWIKp74+nvyVb6wRQWDxW491yTRyRsIxQuUSghinXev+IYZ8fDo hZWeOwRinb7cUaBw== From: Sebastian Andrzej Siewior To: Will Deacon Cc: Mel Gorman , Peter Zijlstra , Jan Kara , Thomas Gleixner , Ingo Molnar , Waiman Long , Boqun Feng , Pierre Gondois , Steven Rostedt , Catalin Marinas , Davidlohr Bueso , LKML , Linux-RT Subject: Re: [PATCH] rtmutex: Add acquire semantics for rtmutex lock acquisition Message-ID: References: <20221202100223.6mevpbl7i6x5udfd@techsingularity.net> <20221202150158.xzgovoy7wuic6vvk@techsingularity.net> <20221216111412.GA8666@willie-the-truck> <20221216135548.itw2xrqbvuldk35y@techsingularity.net> <20221216155803.GB8949@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221216155803.GB8949@willie-the-truck> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-12-16 15:58:04 [+0000], Will Deacon wrote: > I guess bigeasy can give the weaker barrier a try if he has the time, but > otherwise we can leave the change as-is. I can't give a try because I have no HW. All I contributed here so far was based on what you wrote in the previous email and then I spotted the lack of the barrier of any sorts and asked about it. I _would_ assume that the cmpxchg_barrier() here would work but I'm far from knowing. If the explicit barrier after the cmpxchg_relaxed() is what you two agree on and it is better/ cheaper/ more obvious then fine. Do it ;) > Cheers, > > Will Sebastian