Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp834998rdb; Wed, 6 Dec 2023 00:55:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IEtnhTlzrFiLRIPARuHrBqJpNAd7IDLCwWjSfl9oaWCVWf/KNdqDiAhNYZTxm6dyn0HbrWW X-Received: by 2002:a17:902:e88a:b0:1d0:68a:4a46 with SMTP id w10-20020a170902e88a00b001d0068a4a46mr682231plg.3.1701852900174; Wed, 06 Dec 2023 00:55:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701852900; cv=none; d=google.com; s=arc-20160816; b=nbjiA6ad7TXnafIYSqEtZM/ytIg00VvSb32ZpMS4eRgatKW4tkOfIdPa5+60t+oVHr wM8SjW0V7VO/yfhkRp7dbPxpY84+sj9TODM4smZv2sPGRPGT1gSu5Zee8JPJ0UxegTHy WlT6DRlH8vHeXvn6OKZK70t6s5Mib34xxGbhSxZkC9UrO+6SKOhG7xo/NjVLZonMg6dD LGaaxkfBV1V5ooRfBZzSSTNRWEWjaPNwN7zYiKgeXZGUitIzmCKy1fsJgAz5CIY2sMvP AgFSuTIysT9G+kSkEqcIEQAV/AnwSf2qzv93BU6QFp5FFryustWwTlWrt5YAfX76K3Pz UlJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=xPoYUxqS2RZPhcm0gVwXf4pFI+bCrmpOA2Ep16T6/cQ=; fh=JWieladFfeaIwBj69e66MtYgIw576fUcTLVAEUXiV9w=; b=F8eRvtK71ClSqgMwcNK5Zkakbplafw9M2RsYTOKiY4ePe6qeDXKKRcfmoChy4gXmKq ISDe8JJrQ9vR+tjSAAot6+XLYeJvb/YxQWY08YvmquTR4BS6TJRvYNznZvvv8YPFsPUi GiKOehKN5J7aUsQbbiesOFjVwQD6RlenKNlBVL7x5ntM29oVHVrlw75nusChdyqu0k+l LT4FlpjhvOavdFqCSs4sNuJqNn4XJ1w79/gjWuNv/ywuqvFjSo1yn5d34+5g5jl8BQw/ kow1mJ0F8wnJV9B50XowtJLn/Z/bj1PgrloZNPVnL2fcprUHhL9Gnbrafj/xcr8WJsEi /pnA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id f8-20020a170902ce8800b001cfc3f7392fsi6728058plg.252.2023.12.06.00.54.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 00:55:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 55909802F7CA; Wed, 6 Dec 2023 00:54:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376870AbjLFIyi (ORCPT + 99 others); Wed, 6 Dec 2023 03:54:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjLFIyh (ORCPT ); Wed, 6 Dec 2023 03:54:37 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDF59D087 for ; Wed, 6 Dec 2023 00:54:40 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 8E193227A8E; Wed, 6 Dec 2023 09:54:36 +0100 (CET) Date: Wed, 6 Dec 2023 09:54:36 +0100 From: Christoph Hellwig To: Daniel Wagner Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Keith Busch , Christoph Hellwig , Sagi Grimberg , Hannes Reinecke Subject: Re: [PATCH v3 3/4] nvme: move ns id info to struct nvme_ns_head Message-ID: <20231206085436.GB24484@lst.de> References: <20231206081244.32733-1-dwagner@suse.de> <20231206081244.32733-4-dwagner@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231206081244.32733-4-dwagner@suse.de> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 06 Dec 2023 00:54:56 -0800 (PST) On Wed, Dec 06, 2023 at 09:12:43AM +0100, Daniel Wagner wrote: > Move the namesapce info to struct nvme_ns_head, because it's the same > for all associated namespaces. > > The head pointer is accessible from the ns pointer so we could just > update all places with ns->x to ns->head->x. While this is okay for the > slow path, Do you have any data to show that it matters? All the I/O command setup functions already access the ns_head for ->ns_id, so looking at more fields can't really make any difference. If we have a good argument about reducing the pointer chasing I'm all for it, but please as a separate, well-documented commit that also explains the tradeoffs for the newly added lookups this adds in a few places.