Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2934249rdh; Mon, 27 Nov 2023 02:44:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IG9K70X54CJoXa5zt+dD2krpaWvbKZQA+kftnqgYreOlI8u5Eo6nHTW2TVqEjkZAS8KRBem X-Received: by 2002:a17:90b:1b01:b0:285:9d5f:b7c9 with SMTP id nu1-20020a17090b1b0100b002859d5fb7c9mr7103683pjb.23.1701081872168; Mon, 27 Nov 2023 02:44:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701081872; cv=none; d=google.com; s=arc-20160816; b=BT1xGLcC+0bqheqH+19s8Q6Bi0Oha6OZBhjldS+xRFyDatglzKz6GweLfWWCrr2A7M 1UbP/Qo3EwC3av3EoVSm9cMSxOz+VuYBzr6jO+t146BEKY+bHMeX3T+Ln5E4E5lW8bVi CEd+KI+u0/lXPKRc8oHWFuSdfHhAWC3/yNn5WWkTQkJCVaY2GFOyA+1Qramo/Ep9azlR k/OVBUYO9vZZuZJbo8rIgNt7mB7HXHvzU7O8nsq7Q+I+C2pBWQPqe8xkkiODSaynD1VL oVZuQJ5Llqymj/wRos5ELPuORwoDmXq7lSVq9vpuBaVL8XmZq/YhIBkdUAmkeyLjp6yk 9pvg== 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=pa4KmG4/GrZ3zIfHfcJTPlvXSEJB+zWpHRsFzuxElCM=; fh=5xXR+woD6iW9GYQiMghIbApiwJZXO4f7q1VcNmDEv0Q=; b=cOGrLR1Joy5V/+k/vAxBzCmYJBq0bWBkOyZ7Q0JV79GytvQ0Hutqn6kvZsBS6bXJbx Z44Bri3+Q+WeEJvf+Nbd1seifdBgd14muubOWVJKoJWPsVsEd/dnQ5I0epTMOAJtQ79+ AZ/qkbNkslrQyyd9KTp173FpL+ymFpI9fddXbRQXCfN/tjI1qEkv7UDqRN6YRxA+8CoT g3nL/rsjzGEhh9L1+rERwZ0Bc1ikUNxyvgIt/sl6KEiEGmocQgPcMNa1JpGL4JyZH5eY L67671M1NnY9ev8ircKcNjtRnmEYM25ZNuc85uyJgwQ7xXXl3Gl1+M1rRJClWNn7FUsc bWUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NI16mUAX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id mv9-20020a17090b198900b00285911b4b95si6645220pjb.122.2023.11.27.02.44.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 02:44:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NI16mUAX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 43C7B8076498; Mon, 27 Nov 2023 02:44:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233060AbjK0KoJ (ORCPT + 99 others); Mon, 27 Nov 2023 05:44:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233018AbjK0KoI (ORCPT ); Mon, 27 Nov 2023 05:44:08 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11CD2135 for ; Mon, 27 Nov 2023 02:44:14 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47DACC433C9; Mon, 27 Nov 2023 10:44:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701081853; bh=BM0cucoJgxfeP1gzwakogjRSOFzNW7OJuGhJzO+AwkU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NI16mUAXXRUJtUvwYyXOroh0N2ft1jiQaRcczcB6RhO4ZvmnLcGGw5xn9e9s8qZ/E 4UtGTLQbcZU6MQEelp/SzIZQbKaZN81mvujDqRsT8+/E/mb8xqHfdLorKxLnPpY/83 QJnjhmu4Ctj50+2mguMeihYYlaoqSTccpPZwk56KRIZqq0iThWX/jAte8nS3z68HHn W0piVO6Df6MYWYq8GeYO5moxBV2ritL3K3AcXx0mpYlL8/jDGShBmq7Srz+NU7vaJJ 6Vkhd2HT2KsUzaJrrhdfvoHlMgwVHVUH/c3aSxXyu5I6FVoOkZ4I62SQap+sVsUz4I nAdevmLpocSCA== Date: Mon, 27 Nov 2023 03:44:11 -0700 From: Keith Busch To: Daniel Wagner Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Christoph Hellwig , Sagi Grimberg , Hannes Reinecke Subject: Re: [RFC v1] nvme: add cse, ds, ms, nsze and nuse to sysfs Message-ID: References: <20231127103208.25748-1-dwagner@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231127103208.25748-1-dwagner@suse.de> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 27 Nov 2023 02:44:29 -0800 (PST) On Mon, Nov 27, 2023 at 11:32:08AM +0100, Daniel Wagner wrote: > libnvme is using the sysfs for enumarating the nvme resources. Though > there are few missing attritbutes in the sysfs. For these libnvme issues > commands during discovering. > > As the kernel already knows all these attributes and we would like to > avoid libnvme to issue commands all the time, expose these missing > attributes. The id namespace 'nuse' field can be quite volatile: it can change on any write or discard command, so caching it may quickly get out of sync with the actual value.