Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1556567rdb; Sun, 8 Oct 2023 13:32:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGTideKHVWumm7+jzrw35kk5tsKvrrK3pToJRyXcI8zbXheSl+BcYdJl0YqEyiIdidbMkVV X-Received: by 2002:a17:902:e849:b0:1b8:6cae:3570 with SMTP id t9-20020a170902e84900b001b86cae3570mr17403642plg.11.1696797132227; Sun, 08 Oct 2023 13:32:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696797132; cv=none; d=google.com; s=arc-20160816; b=qQKrTMHAr5m725oWzUAdxDIP1R18v2M7o1G6zVJCSBTp5WFuDLWn7xblWzN1UXJqic 3RsbsP0yuLUzFosbdIOBqd5UKszVcX3u2ZFsH9lujvkczt4syiCMm+SlEMB58dNQ/noj SQuPpws2kjHqnIckZ4nLGPVC5H/wFXjzGYhHJJLegv23hgRBFgl1a7ynHyKvzr6JXXBi fyyXiLBpgYdK1noHqWthVZ2lp0oM4rnsjJafe+/QsuuC3iufDvxQ9axPnlGBM+sbQlBK dDzests0LmgQzUHEkSWbsNh7GZXqGEfnaR/JPHDaqdBcpJbES3DdQyz+GB5SliiiSZ7q /Jiw== 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:references :in-reply-to:mime-version:dkim-signature; bh=eO0wrsZ4W7mLGWyOWo1L1ds455g3zsEhPxWE1R/flK0=; fh=CvGTVHTItarWSB1pDUdXx2eV0AZbtMxDLMKyNzLxh2s=; b=E8VH38ZdAVPl3ZgpGBtj0f8FZLNj3IX9HSRi4n6UnXgKeZY6c0tmu838kR8plkyjux +xyyVjuNaRzT/gMsenan60Y/N10Xb0v6bGtdUr1fTn+pM3bOzsxLkmMr1uOa+oidP6Jk /WOAHdUcHlxFGtc11gxGtuPYI5UuiSqM/9o9WBtySsLl/UiwzAuId2iPmPcMO7DIO0s/ CbX8YtpqWaScxupZqSwy8d63JD9K57wW+WDyHeBjZEL7O4FxuoRJGHtsE33uOBcg6Xs+ NJnuaJsJeNpIISLOLlobnVyw15JCLBbJhBUryGvVrCWe7tnYSSQXv/+9PV9W+usKjm76 /Zig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=AAuRsMn8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id lf16-20020a170902fb5000b001c62b51ac0fsi7685685plb.306.2023.10.08.13.32.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Oct 2023 13:32:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=AAuRsMn8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 6222B8025074; Sun, 8 Oct 2023 13:32:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232589AbjJHUbw (ORCPT + 99 others); Sun, 8 Oct 2023 16:31:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229945AbjJHUbv (ORCPT ); Sun, 8 Oct 2023 16:31:51 -0400 Received: from mail-oo1-xc2d.google.com (mail-oo1-xc2d.google.com [IPv6:2607:f8b0:4864:20::c2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C5BCB3; Sun, 8 Oct 2023 13:31:50 -0700 (PDT) Received: by mail-oo1-xc2d.google.com with SMTP id 006d021491bc7-57de9237410so2129530eaf.0; Sun, 08 Oct 2023 13:31:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696797109; x=1697401909; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=eO0wrsZ4W7mLGWyOWo1L1ds455g3zsEhPxWE1R/flK0=; b=AAuRsMn8EiQs6CHP5jBPxhpUEyyoZAZ8E4lHow1UREInxUA6Wboc9bh4W39FQGkRly qEQyrFQvhWqSkCXGXktpopR3rA6g6MScjmiPsSvCEFHsf3+GnLiErJsfJjdTrDODNxA8 n9EtmR7Wnby7ABTJEooQ+aAl8z5eJ80i3K+AzejkLpm9Vc91Vk2noQVma0xWOmpkIYb7 oVnGbJiiswGK/n5QA5wifKBO9nBsvkQEQXiNKQy30N7ZtI4NcivHAhVc77mvrMHdtovQ 5vao/zewO3tyaEhJgqJ5ynMI6n4eZBdqumy+xR9HeEyvf+HJnjMrLKQd+G4WpRvP5/k8 c1gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696797109; x=1697401909; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=eO0wrsZ4W7mLGWyOWo1L1ds455g3zsEhPxWE1R/flK0=; b=M2Lwob6KhYjTYhEONYlah7zd4ap9t5umPg7hsNVT7xPxWmi41zrIzH9edUqz29aJPc LqbQSGifL9Q+HfdSu7VWFimi1HHq6nX7H0dZrMy9B9egY+hJ4CBNd5CYb86LnaET4oju tyNAPYvkYWjof0sXlvqIGFSXi1CnRgpJ9PeQ0pTBi+cfsZbuibPmhxXjMs6nfs/M1H3Y t8NiCQw6p1u6rfHYXNB9ngcHVXOAtV7tDJ3wWiRltFvwfSvpzvshqc4DQUvvKjkk2rpI pvxcBMxv8OUFofGyWbKF5VdUt1rBDi/fHGjEJULxHh8l918k/liPnQui0cDb7DugujAJ KOHA== X-Gm-Message-State: AOJu0YyhrE+wKtwq/XZISeR/dUvEbtanqNNZeAoh+ODyWAMRBSdalSQg n0Xv9Bl12ciDwYlIHVLF+Ou7aEVJ4QBkmx1uPPg= X-Received: by 2002:a4a:9b0b:0:b0:57e:cc93:892d with SMTP id a11-20020a4a9b0b000000b0057ecc93892dmr12747411ook.3.1696797109302; Sun, 08 Oct 2023 13:31:49 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac9:5786:0:b0:4f0:1250:dd51 with HTTP; Sun, 8 Oct 2023 13:31:48 -0700 (PDT) In-Reply-To: <20231007203543.1377452-1-willy@infradead.org> References: <20231007203543.1377452-1-willy@infradead.org> From: Mateusz Guzik Date: Sun, 8 Oct 2023 22:31:48 +0200 Message-ID: Subject: Re: [PATCH v2 0/5] Remove the XFS mrlock To: "Matthew Wilcox (Oracle)" Cc: Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Chandan Babu R , "Darrick J . Wong" , linux-xfs@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Sun, 08 Oct 2023 13:32:10 -0700 (PDT) X-Spam-Level: ** On 10/7/23, Matthew Wilcox (Oracle) wrote: > I'm sympathetic to "this will warn twice and dump much the same > information if you have lockdep enabled". Perhaps somebody has a > suggestion for not doing that? > Well the obvious idea is that lockdep could provide a macro indicating what's up. Then you would: static inline void rwsem_assert_held(const struct rw_semaphore *sem) { if (lockdep_works) lockdep_assert_held(sem); else __rwsem_assert_held(sem); } Am I missing something? If this is not feasible to achieve, then the proposed routines need a comment justifying the state. -- Mateusz Guzik