Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2415654ioo; Sat, 28 May 2022 12:54:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYnmCuIEfbf9ZtzwapRAw/vrZURyaEAz0W+QlrAWYpfpJ4dSCdA0LtZGd7LAqIOaDVRz69 X-Received: by 2002:a17:902:76c4:b0:163:70e2:5a65 with SMTP id j4-20020a17090276c400b0016370e25a65mr15918539plt.119.1653767667540; Sat, 28 May 2022 12:54:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653767667; cv=none; d=google.com; s=arc-20160816; b=E29nUYgPcBm87dJHdpPOXVQeiVDQv7NLZH49ulBLIoaPGUxic4PqCSoD15EvuHcXju MHtcNqsAmlq+Y3tBYANCvSxFtP900pGvbpocHTkN0IzsvLSwMWoY+fluRuGBnczXU1ST BFvY38EW+1lzLYuqcpLs/YUObOlYhpO+T6TXH8DxZ75pzGXFC9r56n1fc3b537YY68pJ OKhylAT6dpFm013OI+/X9FQGlt/GKDsbRQ4Vl3D8g57hTYDO7Q6qBIvSHWxJC9E6g9aC 0gW+8aVqTQdb6HaaD21IeHjCn93nDl3kOtpgN9kQ14bJsCivIfhX0xROZn0IR9Y7yfFz TpMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=isOrsXL0jHLDNpKhO8ZEqLC8ipi0wUCiYFmfhMLBsnU=; b=ci1zxsNpSimboGf2J2BPhsMNwVvMXzl236VXpVgznytJqQD4zoq87L6PZ89xiVp73F TPugKzkg/n4pBJzMCN49/xYCDmBDXK0s2Mlb8CROjEALE57eChqcvnPg6m/f01mtRgMa I1v5w6IXdgy68ZUIhihCWb1N/zQUuDeGzj8Ig+HY4ll16YCT8pQYqwekrGv4l1vqo93R awoycV7lpPu/Q6HcCVj401wzCtNgYm0YsR2F9KUlUOrJMDO2dsMsj5XBG368BpBchpS6 8kW6pTXwbS3cB3zkLTwBg6SFpvnfcllXFk6Wqf1cmfzcwnilERgBbTTfdpj8pjQ4tDvc Pi4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=bE6cq8VX; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id z16-20020a170902ccd000b0016356bd88e5si7956574ple.419.2022.05.28.12.54.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 12:54:27 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=bE6cq8VX; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9B85146143; Sat, 28 May 2022 12:14:28 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345865AbiEZQ4l (ORCPT + 99 others); Thu, 26 May 2022 12:56:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231623AbiEZQ4j (ORCPT ); Thu, 26 May 2022 12:56:39 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFC4F19035 for ; Thu, 26 May 2022 09:56:38 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id fd25so2531578edb.3 for ; Thu, 26 May 2022 09:56:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=isOrsXL0jHLDNpKhO8ZEqLC8ipi0wUCiYFmfhMLBsnU=; b=bE6cq8VXUw1ng5S8fzhwxLsVvpBr5SVM2s8vxx5gkoxKNAfetakdLEGE8CTXa7IJZt K+kt/6HoJEa2Ex44jO8RkS5uhxfCoTX0Grykbi/9zAJ1IlCmATU8zUZE2TcOkYXZGSmN oLQGi/OQ3kqT+160gfv8dAn/LD5zrNzI2mUm4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=isOrsXL0jHLDNpKhO8ZEqLC8ipi0wUCiYFmfhMLBsnU=; b=xOY3dWP/7BQTuHn/NXKHaaUYIyVtPSDkb50gyfZImiZkBh0STycqXzZAuDMmyX8uMR PtMqpf7cegUVpP06UN0T1VfK7C+K+y2JfsQG9MTcQZr7gdZU6zgD9wjDs3tmEaLSa3/R XC+g2YOWdHCQL7pRf7/bjg7sxTIMK4EuRMKP3YPuPO5vgTHmBPyubUwOklT4Un3xXwDi veR7SFcJXvnKuwtl1SCaDsVxhUGDZLJAb34skfixf1cdX7Teb3QOAd4FtxOTWxEcb3Xl PWVbKqs1s7sQPE8X7yiJ2rOx4mwt4fNjspf6s4DO8/g23seJKLaRy+8JnNsB8njDGQqD QNUQ== X-Gm-Message-State: AOAM531sl/OyIRaEp0ybfRShgHV4nvDnbZKaq23tBglhOa2oQqmhzCrh rRn6WiWRxBpQp2PSvr+aZI4ONsqrAZz30u8ab88= X-Received: by 2002:aa7:d591:0:b0:42b:de9d:423b with SMTP id r17-20020aa7d591000000b0042bde9d423bmr3203820edq.359.1653584196913; Thu, 26 May 2022 09:56:36 -0700 (PDT) Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com. [209.85.221.50]) by smtp.gmail.com with ESMTPSA id c23-20020a50f617000000b0042b765c2448sm996034edn.80.2022.05.26.09.56.36 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 May 2022 09:56:36 -0700 (PDT) Received: by mail-wr1-f50.google.com with SMTP id z15so2848520wrg.11 for ; Thu, 26 May 2022 09:56:36 -0700 (PDT) X-Received: by 2002:a5d:6da6:0:b0:20f:bc8a:9400 with SMTP id u6-20020a5d6da6000000b0020fbc8a9400mr25595398wrs.274.1653584195719; Thu, 26 May 2022 09:56:35 -0700 (PDT) MIME-Version: 1.0 References: <20220525144013.6481-1-ubizjak@gmail.com> <20220525144013.6481-2-ubizjak@gmail.com> In-Reply-To: From: Linus Torvalds Date: Thu, 26 May 2022 09:56:19 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] locking/lockref: Use try_cmpxchg64 in CMPXCHG_LOOP macro To: Uros Bizjak , Catalin Marinas , Will Deacon , Russell King , Michael Ellerman , Thomas Bogendoerfer , Heiko Carstens Cc: "the arch/x86 maintainers" , Linux Kernel Mailing List , Peter Zijlstra , Thomas Gleixner , Waiman.Long@hp.com, Paul McKenney Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed, May 25, 2022 at 9:47 AM Linus Torvalds wrote: > > Ack on this one regardless of the 32-bit x86 question. .. and with confirmation from Michael and Mark (and the analysis from Uros on the fallback code), I've applied this to my tree. NOTE! I have *not* applied the second patch with the x86-32 change to enable this on 32-bit with CMPXCHG8B enabled. I think that's independent, and will leave it up to the x86 maintainers. Plus I think the patch should be simplified. Linus