Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1623073rdb; Thu, 7 Dec 2023 04:42:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IHpbw1lOCo7te6KGZU0UXLzZRCcMccnYNlPRk7+MxuL4ch4mBBgMJjz9s1WYfndRpalYIp2 X-Received: by 2002:a05:6a20:2303:b0:18f:97c:384b with SMTP id n3-20020a056a20230300b0018f097c384bmr2415310pzc.37.1701952944125; Thu, 07 Dec 2023 04:42:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701952944; cv=none; d=google.com; s=arc-20160816; b=A51I1HfxBwRBamTQTKiCI1iYZ2qHAhQ6rxIKomQBIQLdF4MjIxcZRGaib+FAa80nFK t7rPW7ctfZfRLGC+pIufyc1D++Xkw8c7CUsEzv3K0QIfXUAoznLlqXVH/frM/pogVzAY WXCK3Gr32Pnn2irjr5sg4N/x/AAWIypEATGNO6mDNuWAVVs3Gg1CpCnqQQrVDVYXdgzd tYkbB/ZxMRaTxRyDSi6styn8yVi+W+fKPbUll+L1dExVUUfCN2Y7L5+XdBxQNyWO8EmD O4hCTAQi6nCRMew13TLKu37WqttDR3ZdZ4aAoxJlWk/zYI8xLLPyLGo2q5ovJYVVrmSB 4iPg== 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; bh=qBi1TekSRtm5ic47GzMmMdwpuilnYjzd3dhSaXWmsz0=; fh=b3N1EOtGxXH1jnE46bE8toRijsQZgrsvwlkUyq9RkEo=; b=fROp5V7bDGChXyIyloSXc2Dic7UIeBHMBE6/9zny3Bwalld+CcWnPOIKtIYs4AlUcc gHtlQjaDe0PnvWmU7Bb87KqtVexv/rb0YLsKZvQ9o6BXgqy9NJT4YN72ySSx7VqfCbku EAQFfAxHqZcAJiFBFU3bjHUETT76WXCwK2t+cODyC+83M5Wwjy6CgNx7iHQHdmZk8Rwl 8hFAiZ1/dXixnJtQWa2dDenPAobwqWn5tu1LyGC8PrsIf7fksbZdUBuaxro0QGB4m4gs A1us+Kgqx+tihj+4o3zJEgddGUdUj6KpWvxE/kTLWfyLxtLOJJoV1/97C+k6R2Iqbt36 HRXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id s28-20020a056a00179c00b006cbf67abff9si1177906pfg.269.2023.12.07.04.42.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 04:42:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 62FC4805AA35; Thu, 7 Dec 2023 04:42:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232488AbjLGMmI (ORCPT + 99 others); Thu, 7 Dec 2023 07:42:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230382AbjLGMmH (ORCPT ); Thu, 7 Dec 2023 07:42:07 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C934DA5 for ; Thu, 7 Dec 2023 04:42:13 -0800 (PST) Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 401E321CC0; Thu, 7 Dec 2023 12:42:12 +0000 (UTC) Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id 2D539139E3; Thu, 7 Dec 2023 12:42:12 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id +L+fCaS9cWXfBAAAn2gu4w (envelope-from ); Thu, 07 Dec 2023 12:42:12 +0000 Date: Thu, 7 Dec 2023 13:42:11 +0100 From: Daniel Wagner To: linux-nvme@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Keith Busch , Christoph Hellwig , Sagi Grimberg , Hannes Reinecke Subject: Re: [PATCH v4 3/4] nvme: add csi, ms and nuse to sysfs Message-ID: References: <20231207123624.29959-1-dwagner@suse.de> <20231207123624.29959-4-dwagner@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231207123624.29959-4-dwagner@suse.de> X-Spamd-Bar: +++++++++++++ Authentication-Results: smtp-out1.suse.de; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=suse.de (policy=none); spf=softfail (smtp-out1.suse.de: 2a07:de40:b281:104:10:150:64:98 is neither permitted nor denied by domain of dwagner@suse.de) smtp.mailfrom=dwagner@suse.de X-Rspamd-Server: rspamd2 X-Spamd-Result: default: False [13.37 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:98:from]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(3.00)[0.999]; MIME_GOOD(-0.10)[text/plain]; MID_RHS_NOT_FQDN(0.50)[]; R_SPF_SOFTFAIL(4.60)[~all:c]; RCPT_COUNT_FIVE(0.00)[6]; RCVD_COUNT_THREE(0.00)[3]; MX_GOOD(-0.01)[]; NEURAL_SPAM_LONG(3.50)[1.000]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(2.20)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.42)[78.19%]; DMARC_POLICY_SOFTFAIL(0.10)[suse.de : No valid SPF, No valid DKIM,none] X-Spam-Score: 13.37 X-Rspamd-Queue-Id: 401E321CC0 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 agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 07 Dec 2023 04:42:21 -0800 (PST) On Thu, Dec 07, 2023 at 01:36:23PM +0100, Daniel Wagner wrote: > +static int ns_head_update_nuse(struct nvme_ns_head *head) > +{ > + struct nvme_id_ns *id; > + struct nvme_ns *ns; > + int srcu_idx, ret = -EWOULDBLOCK; > + > + /* Avoid issuing commands too often by rate limiting the update */ > + if (!__ratelimit(&head->rs_nuse)) > + return 0; > + > + pr_info("%s: head %p\n", __func__, head); Forgot to remove this debug print. > +static int ns_update_nuse(struct nvme_ns *ns) > +{ > + struct nvme_id_ns *id; > + int ret; > + > + /* Avoid issuing commands too often by rate limiting the update. */ > + if (!__ratelimit(&ns->head->rs_nuse)) > + return 0; > + > + pr_info("%s: ns %p\n", __func__, ns); ditto