Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1620024rdb; Thu, 7 Dec 2023 04:36:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IH92Awg5jApr6CJJHGLDIBj6xB9c50KDETnEDwOnl+3vbkfhNNPAcu4EMS8uKhcsCsE38cZ X-Received: by 2002:a05:6359:71cd:b0:170:17eb:14c1 with SMTP id uf13-20020a05635971cd00b0017017eb14c1mr2154653rwb.49.1701952606343; Thu, 07 Dec 2023 04:36:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701952606; cv=none; d=google.com; s=arc-20160816; b=iWwyDjPkGw3Uygv7HT9/jG/lSsfAq9Vu9EpcPFjRRpn1z3tsBFtMxsZ0NIYFYD6ZAV G6E4aNlTTsQgg4oDASOuQcDznRzAAnPtb2tBi57kbCAdAuOv2q8d0OGajZLU+elElT6X hZFfHWLiaF32gX+61E+S/cJpy4akMaD3RnhmppFHfckS+pbcj8bGjV3bqsp+a60bPnIG A2VGc/ExS67tsnU12qF3eck37NqSBA/ryWIY5dLxPdYYPk+B9GgWqUpRGJecxhVykItL 2iUC1StkA08zYuIXGRu+OG1iV6M2ZpI3KPMav0Wiu2+QbKabEDtUYQqE09S5en+ceQSc SDvA== 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=y0U8KZeCA6s4bpvZ3Ttl3mLxygRB+RMYkcn6DEWuK94=; fh=DJbT8ne4Efjik5M2lT8AzCh46QRFyMX3tPkPd3UGLh8=; b=vUGc/cJGuQwobJ082DBKPQq9Bu5Ea//ujqPIhsWhOGjDI/vdEoQpV/pkxjiSq4BRl3 hEHlyB63a+9Ii3Utfl6PxuRbWTbyNW7cDGIeetMtdveg6T79/Z6Erv1ORVT2xMha4ZJj Z/cOwVuQfAwIyX6jU1xof4avI9VzdApeeqfQ6xXyXgvYtfd2NLDDMkWnRGHO8guGYyMG 1lFjAg1g4ePNoL6Opf7itRT8J5xKoQKkJXjrGQnGOl64ze/jRtsvmqJa9JLOxh5ZDMzv /TRwydBNDoEaBZkpkE3CzkJP6q3fKCAIZlJPi8nVFVTqOV4GP3nuqvOobFnNxLasaEbg fGKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=f5FwqGfD; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=Awk6IWJE; 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=pass (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 dk21-20020a056a00489500b006ceb1a0fa60si997501pfb.8.2023.12.07.04.36.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 04:36:46 -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; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=f5FwqGfD; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=Awk6IWJE; 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=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 agentk.vger.email (Postfix) with ESMTP id 4F9408057B1F; Thu, 7 Dec 2023 04:36:42 -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 S232592AbjLGMg1 (ORCPT + 99 others); Thu, 7 Dec 2023 07:36:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232583AbjLGMgZ (ORCPT ); Thu, 7 Dec 2023 07:36:25 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1780C10C8 for ; Thu, 7 Dec 2023 04:36:31 -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-out2.suse.de (Postfix) with ESMTPS id B418E1FB4F; Thu, 7 Dec 2023 12:36:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1701952589; 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=y0U8KZeCA6s4bpvZ3Ttl3mLxygRB+RMYkcn6DEWuK94=; b=f5FwqGfDBOy9U8Z5u646KUAOKbJKexPpijr70f5wK+g9ldn1oY2LYDIdyu/mKe6EA5YoHr h+CjFjdCEjFIi3D+urRsKN71SbYI8hVlzREiQCd8e3m82mzsQ4chMlJFc1jYZ1K204oTWB 2Y3wSHWD29i0ZbQ+HMnJ5E+ri2XNIQA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1701952589; 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=y0U8KZeCA6s4bpvZ3Ttl3mLxygRB+RMYkcn6DEWuK94=; b=Awk6IWJEr42CiZbc7ZAQBL5MvV3Do3xHG8iHwDiENL7OK+O7wOqa/+jl27vwI/cI5xcAYN cfCZZEyqIGoDCqBA== 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 A09C9139E3; Thu, 7 Dec 2023 12:36:29 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id dZXCJU28cWXzAgAAn2gu4w (envelope-from ); Thu, 07 Dec 2023 12:36:29 +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: [PATCH v4 0/4] nvme: add csi, ms and nuse to sysfs Date: Thu, 7 Dec 2023 13:36:20 +0100 Message-ID: <20231207123624.29959-1-dwagner@suse.de> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Authentication-Results: smtp-out2.suse.de; none X-Spam-Score: 2.44 X-Spamd-Result: default: False [2.44 / 50.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_MISSING_CHARSET(2.50)[]; BROKEN_CONTENT_TYPE(1.50)[]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCPT_COUNT_SEVEN(0.00)[7]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; BAYES_HAM(-1.26)[89.74%]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; MID_CONTAINS_FROM(1.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_TLS_ALL(0.00)[] 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 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:36:42 -0800 (PST) As already reported in v3, the nvme_ns_head change was not gaining us anything. Instead a simple repacking of nvme_ns gives better performance. Thus these patches are gone. Thanks, Daniel libnvme changes: https://github.com/igaw/libnvme/tree/tree-no-cmd changes: v4: - drop 'use nvme_ns_head instead nvme_ns' patches - ratelimit nuse update per namespace not globally - rename ns attribute group - added non-multipath nuse update logic - added cacheline optimization v3: - cut overlong lines shorter - fixed disk (queuedata) initialization order - more testing with blktest - added nuse ratelimit - added reviewed tags - https://lore.kernel.org/linux-nvme/20231206081244.32733-1-dwagner@suse.de/ v2: - moved ns id data to nvme_ns_head - dropped ds, nsze - https://lore.kernel.org/linux-nvme/20231201092735.28592-1-dwagner@suse.de/ v1: - initial version - https://lore.kernel.org/linux-nvme/20231127103208.25748-1-dwagner@suse.de/ Daniel Wagner (4): nvme: move ns id info to struct nvme_ns_head nvme: rename ns attribute group nvme: add csi, ms and nuse to sysfs nvme: repack struct nvme_ns_head drivers/nvme/host/core.c | 87 ++++++++++++++-------------- drivers/nvme/host/ioctl.c | 8 +-- drivers/nvme/host/multipath.c | 2 +- drivers/nvme/host/nvme.h | 38 +++++++------ drivers/nvme/host/rdma.c | 2 +- drivers/nvme/host/sysfs.c | 103 +++++++++++++++++++++++++++++++--- drivers/nvme/host/zns.c | 17 +++--- 7 files changed, 179 insertions(+), 78 deletions(-) -- 2.43.0