Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp906227rdb; Fri, 1 Dec 2023 01:31:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IHJAs7mZMddxCt1cToO4pLh+Q3hVJ3nPm2MVwze5IAj0RqteLnjiHHAzpZdDb5DcaW4ITFI X-Received: by 2002:a17:903:2281:b0:1cf:ea64:f508 with SMTP id b1-20020a170903228100b001cfea64f508mr14531119plh.2.1701423097894; Fri, 01 Dec 2023 01:31:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701423097; cv=none; d=google.com; s=arc-20160816; b=ngo187TGSijA/Zfx8cHk43Ap6QMGE8kNuWOsNQ2hbDKfuQ1YK8ACUoyftqInGPbnJo KD3+J8d8tGuL5Wh6fhmFNXuajDhDoDfsJT6T1EAOPUnKJkbJVaMkYzrCg5EAGEQCZs4c DTDwEQUpV2QQjLWlU77vysM88346mYzhrbA2HvLN7nA5ZjZWeW9vwMaicwWpmwpTGT4S s+BEytospKfZRS7WY0LYkqfcr0wg2vJnGS4FV5+PKSAorLBgt60r3qQiYlOVNeP3DvVG xLO61cCMm5vFJ/5ONPppyciaqIa6Pp0ZLUOjJueF5gO0gyQM8UfGj0I5lwhs2jQ0wVZ8 Uy4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=WOtDxc+0CUVH1bgxuNgGLc6i5JbaWlWpPk+72gmy0nQ=; fh=DJbT8ne4Efjik5M2lT8AzCh46QRFyMX3tPkPd3UGLh8=; b=bREeQiwGub2k9NtGortIdFWD42W36QR09J7Vt8eSFlZ/jo2KT0ShO8J5pa1sL3z9DV weZjNZjzfNgwTeyk923Weu41NdJzv2DWIZhiRQkLaPGf+ncbpfvVk3UBtqsN4OPoLZdz xFxP6uEEDk+eAN2nuGS7UfyX4I1HfHPjnYHJpKLVN8Wg/2XCpHYGEQveA3Zst9T3apFx YdtMqBRey9RrJ2OLxqvWFXvkcaikyAm+Zk2Ouluo0PUI+E/826VHovPYHqBPobpI6fbX Hy5k2H92bSAH0jq7beDlzsg1FYjT2eEJjq1OLF6OsWOXcC8cBwjk8iEvXSoq1+FNOQdl iYIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="dSU/z05U"; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id bf9-20020a170902b90900b001cfb3d25f2asi2745477plb.652.2023.12.01.01.31.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 01:31:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="dSU/z05U"; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 pete.vger.email (Postfix) with ESMTP id 3349B8076D06; Fri, 1 Dec 2023 01:30:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378237AbjLAJ34 (ORCPT + 99 others); Fri, 1 Dec 2023 04:29:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378189AbjLAJ3h (ORCPT ); Fri, 1 Dec 2023 04:29:37 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2a07:de40:b251:101:10:150:64:1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 799C92721 for ; Fri, 1 Dec 2023 01:27:48 -0800 (PST) Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [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 6DAD621C3E; Fri, 1 Dec 2023 09:27:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1701422866; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=WOtDxc+0CUVH1bgxuNgGLc6i5JbaWlWpPk+72gmy0nQ=; b=dSU/z05URucCogX6a95hB/5PICcSlu/D5r7y6UaiH2YwO58AHna24Prpx3p5oocfr4QqZ8 542O2gKNAL+2j3mj+41WSJCtXixNydmHuxP8Al7rHOILSH6L8wHXDmXG2Otd2fG+S1+NLH 6eRItJGUob9JyIQ8RMOvvzUY/hu/Vt4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1701422866; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=WOtDxc+0CUVH1bgxuNgGLc6i5JbaWlWpPk+72gmy0nQ=; b=FlIzCByVIt2Es8zV7fh8DvnbmGHKBD5ByyJ3yAP0J+DGex8F+DNxhlDxKuzPULKrVxmiim 133dIuUe826VGhBQ== 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 5C41013928; Fri, 1 Dec 2023 09:27:46 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id Uh0XFRKnaWULZgAAn2gu4w (envelope-from ); Fri, 01 Dec 2023 09:27:46 +0000 From: Daniel Wagner To: linux-nvme@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Keith Busch , Christoph Hellwig , Sagi Grimberg , Hannes Reinecke , Daniel Wagner Subject: [RFC v2 0/3] nvme: add csi, ms and nuse to sysfs Date: Fri, 1 Dec 2023 10:27:32 +0100 Message-ID: <20231201092735.28592-1-dwagner@suse.de> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Authentication-Results: smtp-out1.suse.de; none X-Spam-Score: 3.90 X-Spamd-Result: default: False [3.90 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_MISSING_CHARSET(2.50)[]; MIME_GOOD(-0.10)[text/plain]; BROKEN_CONTENT_TYPE(1.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; RCPT_COUNT_SEVEN(0.00)[7]; MID_CONTAINS_FROM(1.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.00)[12.67%] X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 pete.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 (pete.vger.email [0.0.0.0]); Fri, 01 Dec 2023 01:30:36 -0800 (PST) I've moved all ns id info to nvms_ns_head in this version as we discussed in v1 (hope I understood it right). The change was pretty much straightforward except for nvme_mpath_clear_current_path nvme_mpath_revalidate_paths nvme_failover_req where there is need to access a nvme_ns pointer again. I've tested this change with the nvme-pci and nvme-tcp transport so far. Thanks, Daniel libnvme changes: https://github.com/igaw/libnvme/tree/tree-no-cmd changes: v2: - moved ns id data to nvme_ns_head - dropped ds, nsze v1: - initial version - https://lore.kernel.org/linux-nvme/20231127103208.25748-1-dwagner@suse.de/ Daniel Wagner (3): nvme: lookup ctrl from request instead from namespace nvme: move ns id info to struct nvme_ns_head nvme: add csi, ms and nuse to sysfs drivers/nvme/host/apple.c | 4 +- drivers/nvme/host/core.c | 191 +++++++++++++++++---------------- drivers/nvme/host/fc.c | 4 +- drivers/nvme/host/ioctl.c | 20 ++-- drivers/nvme/host/multipath.c | 40 +++---- drivers/nvme/host/nvme.h | 57 +++++----- drivers/nvme/host/rdma.c | 10 +- drivers/nvme/host/sysfs.c | 24 +++++ drivers/nvme/host/tcp.c | 8 +- drivers/nvme/host/zns.c | 30 +++--- drivers/nvme/target/loop.c | 4 +- drivers/nvme/target/passthru.c | 8 +- 12 files changed, 216 insertions(+), 184 deletions(-) -- 2.43.0