From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E3C63C4167B for ; Fri, 16 Dec 2022 16:21:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231405AbiLPQVA (ORCPT ); Fri, 16 Dec 2022 11:21:00 -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> Precedence: bulk List-ID: X-Mailing-List: linux-rt-users@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