Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3566194pxb; Wed, 13 Oct 2021 08:32:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFFg6iWuFN0ScKgZfU0Utam4n+cmDGwJRvK2cTXitjbn0Pya29qoxiMs57iPFdnwpTkQu2 X-Received: by 2002:a17:906:7632:: with SMTP id c18mr176472ejn.317.1634139123807; Wed, 13 Oct 2021 08:32:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634139123; cv=none; d=google.com; s=arc-20160816; b=wJZNfpnvSLvFsqRbhxiUltwfQ1RDoBfC2PLluiwbVbjPP5c3RR4FTwj8KtF7SH3Nat oBP3gpBQrPKSsa2OAxmerqMngCHpA00nb3a0bATyJYIChZPktymrgr13Pw6ehxwB4KqD gN0lXYhEddCCIowMgMdNfaHMX9i7BOH2SQ6dioinV2i+cxkZC1IazBVvf2FtKIgSvIWV jEtSGjAHTBhBdCMOwJ1v86aoa6orQxHvcqxiIy7+KZazb7iN+Ydqnbu7LCRCIUlfzrYa DiyCk6QmnlOV89R1numWbUDeifJsqYkSZTEKIvpDouhz8mLIYl3N7aAW6nYD/S4+6mXO 0Wnw== 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:date:dkim-signature; bh=7E+hPiQQERHmVxALs9OGq5/I4NAGwHktosOAiz3bsWE=; b=VzQtzBk86UPI91fPDMojTPMwbP85FRs2OmVxFGsA+bP5Ci2t9LeJMTwp1zAyqdfQ/o ITPZzfIUCRK6vQSZ0/BUpLYavOA+PukogoKBrQ186iOPKykV70b+JMe71bYFuB+5Rnln FotdG4AUoy8bP5cQ7qGVChUha/8vDy6wEiRcYvF47X/0xsNJkeS9JC5u6y1Z9qB1SOad Et27bbs54GAV1b/ZaJOUCHjqxzmZ3OnJpzhXyG/B8WqDJKa+bDhpz3gsF0mP1hMW2EQv pNf3/af0OdVUQDlxn2ggeMcvmwOTXVUHMtPG2LPh+rowsi9LGbH1JXam1pAf25avaj4A 3bwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=frB1GlKz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p4si21466415eju.502.2021.10.13.08.31.38; Wed, 13 Oct 2021 08:32:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=frB1GlKz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233182AbhJMP3V (ORCPT + 99 others); Wed, 13 Oct 2021 11:29:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232155AbhJMP3R (ORCPT ); Wed, 13 Oct 2021 11:29:17 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BBB3C061570; Wed, 13 Oct 2021 08:27:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=7E+hPiQQERHmVxALs9OGq5/I4NAGwHktosOAiz3bsWE=; b=frB1GlKz/JIvrtbxv67JeTgiBL UD236qPs1B5cHQRdecow1PHYsMxV6I90Qt812LFmJanJrpvO5yCimfGJjJAEJfbLQE8PuZYfZsFKV H15IQdMcV4ClFdGH9i5SPm0L+6Czy5lYbQL30p2zJF+oSq5N5/BAejVtDsVvPHhPhbLtCMiqtpOG1 D6qBRib2jCAwvT1ZGqOt6s5rRfodxoZYqQMVfY/BBkRY31tClXO/5qL3GH5G6ouhIcoAES8m/AzGz 8+NM3yggeygJvL8ztepF1XEuqmbXh+4xpzM9dJPcDzs9C0GNaHGCxo7D9HBSIpqU9gwqOKOLIo4LO JRSJXMqw==; Received: from hch by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mag7y-007YNf-Df; Wed, 13 Oct 2021 15:25:24 +0000 Date: Wed, 13 Oct 2021 16:25:10 +0100 From: Christoph Hellwig To: Pavel Begunkov Cc: Jens Axboe , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig Subject: Re: [PATCH v2 2/3] block: don't hide inode from block_device users Message-ID: References: <2b8c84834a304871d78f91d4ebe153fac2192fd5.1634115360.git.asml.silence@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2b8c84834a304871d78f91d4ebe153fac2192fd5.1634115360.git.asml.silence@gmail.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 13, 2021 at 09:57:12AM +0100, Pavel Begunkov wrote: > Instead of tricks with struct bdev_inode, just openly place the inode > inside struct block_device. First, it allows us to inline I_BDEV, which > is simple but non-inline nature of it impacts performance. Also, make it > possible to get rid of ->bd_inode pointer and hooping with extra > indirection, the amount of which became a noticeable problem for the > block layer. What fast path outside of bdev.c cares about an inlined I_BDEV? I have dusted off patches to reduce (and hopefully eventually kill) accesses to bd_inode outside of bdev.c, so this goes into the wrong direction. If needed I'd rather figure out a way to fix any smoking gun without this change.