Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1461167pxb; Thu, 14 Apr 2022 06:48:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRCCbW8LEdd9PyNYm7viNRvL53m2Y5M7dR/8f/JAquqxhrZnTGnbQeR6YmoTNIkW2+IdFv X-Received: by 2002:a17:902:9a81:b0:158:1c91:4655 with SMTP id w1-20020a1709029a8100b001581c914655mr32223946plp.162.1649944086924; Thu, 14 Apr 2022 06:48:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649944086; cv=none; d=google.com; s=arc-20160816; b=QH4c0ZQqk1/26JlClCZfzf/9uAwtkIzycMjS9M5KskJsKyOzn9BuXtzlJAwHQwLiJf 5yc5IhFQ+UXnwPRTbwcSyCdTjW4g3LF3KyMdNjlATenpCAo9H5DMWjda43RODSGdXgSx YvKJOUHPYiXDnts6YCIhfRZZ2BdlQZH9u6qXUqIuT3jTU4GRUc2lTaWnY/8mAYGoT3Wr L/17KbbqmtNlbuqXv0VmKPM8nYEzVXGhQ0Q/sooTKBV1mG2TdOk0Uy0dumAIbScKSLBG HdW7GnIQ4s1SAA31s2OXZaNKfkTdlr8fG5uAffJ0yQSJfAWinscK7YGkEsFFjkMaCXan NAEQ== 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=+TkOV5v3hXeRRZE7H5Vq1vLrZTdrHF1lFjpXd5xGlls=; b=xU6eQORAM1hW/wwPrxbEFWIIMDkQ/WBRinR7/t3OvSoeYPQ9MRORhd2GLSYgMaHi40 Mqaql9T7dQur2EZbTqNEHJiQ/PbpHdJEnQEM/HTUMIDCwvRX+p8qd8f7PDG/qx5HG9eb a/vH55OzfroFC+fY86bCrZY++93vOOykZHiqRzjG8e4Kkb7J3T00afbjg77HMafyxenB 0YI+GNcQvFnsOIgC/nbmggPhWFkWK6t26vZb8MQK0m4no/cj7L+MP7KWayvPzXwCFXcB UKmHvBxaPErzuwonqJ2j5MnhXBia63lEoKBR+SH7LHVZXeftI4FEaRHbKSnU1DoPIeG7 M6IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20210112.gappssmtp.com header.s=20210112 header.b=q6sK4N3f; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d200-20020a621dd1000000b005056fd7c13fsi8343pfd.174.2022.04.14.06.47.52; Thu, 14 Apr 2022 06:48:06 -0700 (PDT) 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=@intel-com.20210112.gappssmtp.com header.s=20210112 header.b=q6sK4N3f; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235254AbiDMWIf (ORCPT + 99 others); Wed, 13 Apr 2022 18:08:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233989AbiDMWIc (ORCPT ); Wed, 13 Apr 2022 18:08:32 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD6E413E27 for ; Wed, 13 Apr 2022 15:06:09 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id q3so3114532plg.3 for ; Wed, 13 Apr 2022 15:06:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+TkOV5v3hXeRRZE7H5Vq1vLrZTdrHF1lFjpXd5xGlls=; b=q6sK4N3fFAyBdutlj3pA0WimzP1uGFTAe5+cE/dtB9yEAOFJIyKZsB84DqxChLidKx NU/g4XTKeQyD1+NLhsWf4RjmS2Fc1e0IJxDFaMN1dwYTZm+wByCBelYAyI1hISqJE/pY LYZ60ezMfuPQDGcV5PwaYU0RF9MTdkNiLzp0vMq33AAqgaT83wWiyVpFU0uTtOFjlNm0 KLUinkvgkYLebCQXnIHpVm8jqXLkscZKeTq2fWyu5Bwd88Si7Lkim091Tik+Cq9bIZ0E x+2qoKZbDouq5Tkz+/6THbFbhmvGk1OUcm2EqH8Aw92H7EQPHtZ4kRYCBeNXvKpmxZyP lYkA== 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=+TkOV5v3hXeRRZE7H5Vq1vLrZTdrHF1lFjpXd5xGlls=; b=zkxsjvfUBV9Dmd/b5h6qO0XXMLfwSpVuh61ii6budW3zyCzR7M64j5lRy0U5vd5olC n2J9SE5owHT+NsYZUgcR/KvmWluvs1le5uLuHv6DD2HCSX60tILa0T613An4khgEEwrN 1kErYSWtgm+savMd10K1OQQny+ZkiF/hHPEX1W28yQxK/70+SmJNpshpFg4Jo0n6522i 8U/9eRKtcw7UGXoCZ3eFbp3Dxp652cD5LVNV8HlaA362QAJw35na04kYcRL5yFjzq6dZ Xe94cYLEhVKQIjJGlVDl9dgpJVChzjaCRtrwTEPHfxXBEtOMqWAgN8AdCV5kC9L5JQTF 2H3A== X-Gm-Message-State: AOAM5336z0BwBf1EyTageeUDanXHiWc1HLABZk23cBY9h0Gfa3AFViBI C90oZqQxon5ROITK1ykoFoaKhrvc6s9WxZ+yV2FoEQ== X-Received: by 2002:a17:90a:430d:b0:1bc:f340:8096 with SMTP id q13-20020a17090a430d00b001bcf3408096mr266248pjg.93.1649887569436; Wed, 13 Apr 2022 15:06:09 -0700 (PDT) MIME-Version: 1.0 References: <164982968798.684294.15817853329823976469.stgit@dwillia2-desk3.amr.corp.intel.com> <164982970436.684294.12004091884213856239.stgit@dwillia2-desk3.amr.corp.intel.com> <20220413093949.GW2731@worktop.programming.kicks-ass.net> In-Reply-To: <20220413093949.GW2731@worktop.programming.kicks-ass.net> From: Dan Williams Date: Wed, 13 Apr 2022 15:05:58 -0700 Message-ID: Subject: Re: [PATCH v2 03/12] cxl/core: Refactor a cxl_lock_class() out of cxl_nested_lock() To: Peter Zijlstra Cc: linux-cxl@vger.kernel.org, Alison Schofield , Vishal Verma , Ira Weiny , Ben Widawsky , Jonathan Cameron , Dave Jiang , Kevin Tian , Greg KH , Linux Kernel Mailing List , Linux NVDIMM Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 Wed, Apr 13, 2022 at 2:40 AM Peter Zijlstra wrote: > > > *Completely* untested (I wouldn't know where to begin and probably odn't > have the hardware anyway), and known incomplete. > > What's wrong with something like this then? > I'll give it a shot, I think it solves all the cringeworthy aspects of what I proposed.