Message ID | 20231218165954.29652-1-dwagner@suse.de |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-4107-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp1383667dyi; Mon, 18 Dec 2023 09:01:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IFcO+A5/yElR+afil3W3cj21Ht+7DbRBZ/kwIsTD2KULKxi0qcqJHFoWFUSvCLtvf/Dw2F0 X-Received: by 2002:aa7:de97:0:b0:54c:76bf:eaff with SMTP id j23-20020aa7de97000000b0054c76bfeaffmr9669956edv.58.1702918871375; Mon, 18 Dec 2023 09:01:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702918871; cv=none; d=google.com; s=arc-20160816; b=yW9ElsGcWEgHCjKF60Bin/WPLEUrT6N0AFaeM7YQU/oFBW500/IAD9UwBYg86/Wr/b jgMh/n4EqzVIqUOg2AvWg2FzGg3DYhRJSTdcYDKYJhJxeU/VVRknharwb4rUp/C26UeG OAwdqY8FGnb9EPmAKnCKQkvB/x1RPkbXh4ARqFhOfmYeJrKabrBNq49fJknRAqTDmGF9 QZdWN9dE9alnYC1PtKyVyhL+Q6dcIbUB8KhONO/o4XtTPmy2fqA36BhTzLvgXFcf6jth 8K+Vk/Gk3xsDUKr12tR36LoO4eSVhJgIyJhe9XLKwHaZtysSDjN9b9/sNJfK/XO4GugO lNww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature:dkim-signature:dkim-signature; bh=MWYDStw9L70g5Zod1mNSFlqE3RQHs5nnHmAPxDPRssE=; fh=FwD2YyYv16RA783U5Ue5Ni6CeZPTkmUN4amRjXXIdl8=; b=GUGxtFkuHFYeLEWqeiAAqXqkvkcarvwqrykAMAyeD5d3IVDk4HO52lg01uTOjFaSJa fn8ilqLRA6UO0M45bn62B0pVy01iCyvMuhDx7aGkCdS233kTEdqW7WRgOrBlICkG3A/k Xz+RUAB0bZX3dYScdSXpkU90Q0PLICzAWMFWi+BY3AiIVIyV4rLBHsTmnJTRtCyTHfHj +vI3LfYeNMwVmepuSZf4PUPw+yoWCtzc8uZpDKCC19Qe62CNWR4pKoHgIRxLwrm7sO3x yZ8Cy9kWZW1fvTIWSyT02eeLHLuOObn4J5wmUozRupbp22kwWDj4BwpRXFgjF7OqwBkX gfJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=cAxXR+pH; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=52DZ6vTd; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=DppdkvQi; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=nYGz42lR; spf=pass (google.com: domain of linux-kernel+bounces-4107-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4107-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r5-20020a50d685000000b005530ec1b918si2028552edi.603.2023.12.18.09.01.10 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 09:01:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4107-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=cAxXR+pH; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=52DZ6vTd; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=DppdkvQi; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=nYGz42lR; spf=pass (google.com: domain of linux-kernel+bounces-4107-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4107-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2D0FB1F2301C for <ouuuleilei@gmail.com>; Mon, 18 Dec 2023 17:01:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C6AE55BFB3; Mon, 18 Dec 2023 17:00:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="cAxXR+pH"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="52DZ6vTd"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="DppdkvQi"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="nYGz42lR" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 389A842042 for <linux-kernel@vger.kernel.org>; Mon, 18 Dec 2023 17:00:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de 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 D39FA21EF5; Mon, 18 Dec 2023 16:59:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1702918800; 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=MWYDStw9L70g5Zod1mNSFlqE3RQHs5nnHmAPxDPRssE=; b=cAxXR+pHWkRuzuTKvZFWyo6rfT0PC0drfIqS8xOMKZ0hzdVX4xW2VlUgntgl1C1UqSif1k eTbT+LZox0Uy/+g/b0YwNjsRlfJGGZhjjTbZ7kom/m19WPH2n/1ExpGwRKbwvHPtvLv9ye jTkdg/NEX9SqMX8CHJ+XxrEnNM5970Q= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1702918800; 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=MWYDStw9L70g5Zod1mNSFlqE3RQHs5nnHmAPxDPRssE=; b=52DZ6vTdaqtPqXSlsmvasQ/oW8UedV9sVs2T7bAAeIV1m8iZpMRmO7CABH2lZMOLYoG4aU D8Dg0uJ5BxiutGDg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1702918799; 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=MWYDStw9L70g5Zod1mNSFlqE3RQHs5nnHmAPxDPRssE=; b=DppdkvQigj7Q4wD3rzocvUIo5UYpYKHMrbS2FdqGRipEAhYtNII6kq2EDF5t0fsLPSGHZm TIXecfcGTw9QbNu0oBb0TNPaobQFX4ojdf9jvUAa+2CeAbC/7in0GQlezT0jhikSyc9M4g xohH4ap0jx0SPkULDG65qmQZ7qChaFk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1702918799; 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=MWYDStw9L70g5Zod1mNSFlqE3RQHs5nnHmAPxDPRssE=; b=nYGz42lRbI8gFvP2HXoZ8wAI7L0eWd/31XM431AcKXegqekv4fJ8ln8xr3BleZuS/eTew+ b/mYTwsJSExoNHBA== 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 B6D8A13927; Mon, 18 Dec 2023 16:59:59 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id OR9PLI96gGU6DwAAn2gu4w (envelope-from <dwagner@suse.de>); Mon, 18 Dec 2023 16:59:59 +0000 From: Daniel Wagner <dwagner@suse.de> To: linux-nvme@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Keith Busch <kbusch@kernel.org>, Christoph Hellwig <hch@lst.de>, Sagi Grimberg <sagi@grimberg.me>, Hannes Reinecke <hare@suse.de>, Max Gurtovoy <mgurtovoy@nvidia.com>, Chaitanya Kulkarni <chaitanyak@nvidia.com>, Daniel Wagner <dwagner@suse.de> Subject: [PATCH v6 0/6] nvme: add csi, ms and nuse to sysfs Date: Mon, 18 Dec 2023 17:59:48 +0100 Message-ID: <20231218165954.29652-1-dwagner@suse.de> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Level: ****** X-Spamd-Bar: ++++++ Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=DppdkvQi; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=nYGz42lR X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [6.59 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; BAYES_SPAM(5.10)[100.00%]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_MISSING_CHARSET(2.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; BROKEN_CONTENT_TYPE(1.50)[]; DWL_DNSWL_MED(-2.00)[suse.de:dkim]; 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]; DKIM_TRACE(0.00)[suse.de:+]; MX_GOOD(-0.01)[]; RCPT_COUNT_SEVEN(0.00)[9]; MID_CONTAINS_FROM(1.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCVD_TLS_ALL(0.00)[] X-Spam-Score: 6.59 X-Rspamd-Queue-Id: D39FA21EF5 X-Spam-Flag: NO X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785639858438871294 X-GMAIL-MSGID: 1785639858438871294 |
Series |
nvme: add csi, ms and nuse to sysfs
|
|
Message
Daniel Wagner
Dec. 18, 2023, 4:59 p.m. UTC
Rebased on the current nvme/nvme-6.8 branch and added the Review tags. Also addressed the printk format issue pointed out by Chaitanya. About PI: I've added a note to the first commit pointing on this topic. I understood from the discussion, that yes it is an issue but it already exists and we will address this in future. Thanks, Daniel libnvme changes: https://github.com/igaw/libnvme/tree/tree-no-cmd changes: v6: - rebased on nvme/nvme-6.8 - collected Reviewed tags - updated printk format v5: - reverted trigger happy conversion to nvme_ns_head in nvme_zns_alloc_report_buffer - removed debug output - added refactoring patches - ratelimit silence suppress messages - added reviewed tags - https://lore.kernel.org/linux-nvme/20231208105337.23409-1-dwagner@suse.de/ 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 - https://lore.kernel.org/linux-nvme/20231207123624.29959-1-dwagner@suse.de/ 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 (6): nvme: move ns id info to struct nvme_ns_head nvme: refactor ns info helpers nvme: refactor ns info setup function nvme: rename ns attribute group nvme: add csi, ms and nuse to sysfs nvme: repack struct nvme_ns_head drivers/nvme/host/core.c | 168 ++++++++++++++++++---------------- drivers/nvme/host/ioctl.c | 8 +- drivers/nvme/host/multipath.c | 2 +- drivers/nvme/host/nvme.h | 44 +++++---- drivers/nvme/host/rdma.c | 4 +- drivers/nvme/host/sysfs.c | 99 ++++++++++++++++++-- drivers/nvme/host/zns.c | 35 +++---- 7 files changed, 233 insertions(+), 127 deletions(-)
Comments
On Mon, Dec 18, 2023 at 05:59:48PM +0100, Daniel Wagner wrote: > Rebased on the current nvme/nvme-6.8 branch and added the Review tags. Also > addressed the printk format issue pointed out by Chaitanya. Thanks, added to nvme-6.8.
Hi Keith, On 19/12/2023 0:55, Keith Busch wrote: > On Mon, Dec 18, 2023 at 05:59:48PM +0100, Daniel Wagner wrote: >> Rebased on the current nvme/nvme-6.8 branch and added the Review tags. Also >> addressed the printk format issue pointed out by Chaitanya. > > Thanks, added to nvme-6.8. I'm rebasing my fixes to the PI bug (which are not trivial) on top of nvme-6.8 and Daniel's series. I've found that this branch is missing some fixes from the master that I've added manually to local nvme-6.8 branch. When do you plan to rebase the nvme-6.8 on top of master ? It will be helpful, otherwise my patches will not apply cleanly on your branch. :) -Max.
On Tue, Dec 19, 2023 at 04:42:20PM +0200, Max Gurtovoy wrote: > Hi Keith, > > On 19/12/2023 0:55, Keith Busch wrote: > > On Mon, Dec 18, 2023 at 05:59:48PM +0100, Daniel Wagner wrote: > > > Rebased on the current nvme/nvme-6.8 branch and added the Review tags. Also > > > addressed the printk format issue pointed out by Chaitanya. > > > > Thanks, added to nvme-6.8. > > I'm rebasing my fixes to the PI bug (which are not trivial) on top of > nvme-6.8 and Daniel's series. > I've found that this branch is missing some fixes from the master that I've > added manually to local nvme-6.8 branch. > When do you plan to rebase the nvme-6.8 on top of master ? > It will be helpful, otherwise my patches will not apply cleanly on your > branch. :) linux-nvme pulls go through Jens' linux-block repo, so we have to be based on the appropriate branch from there. We already have some late fixes in 6.7 that create minor merge conflicts for our existing 6.8 branch, so we may provide a reference resolution branch with the pull request if conflicts are non-trivial. That might be an option for your fixes if you can make them work atop existing nvme-6.8 without the conflicting 6.7 changes. Sometime after the next merge window opens, Jens will rebase his 6.8 block tree to Linus', and we usually get a 2nd feature pull request within the merge window from that new baseline. That might be an option if you want to wait a couple more weeks.
On 19/12/2023 18:07, Keith Busch wrote: > On Tue, Dec 19, 2023 at 04:42:20PM +0200, Max Gurtovoy wrote: >> Hi Keith, >> >> On 19/12/2023 0:55, Keith Busch wrote: >>> On Mon, Dec 18, 2023 at 05:59:48PM +0100, Daniel Wagner wrote: >>>> Rebased on the current nvme/nvme-6.8 branch and added the Review tags. Also >>>> addressed the printk format issue pointed out by Chaitanya. >>> >>> Thanks, added to nvme-6.8. >> >> I'm rebasing my fixes to the PI bug (which are not trivial) on top of >> nvme-6.8 and Daniel's series. >> I've found that this branch is missing some fixes from the master that I've >> added manually to local nvme-6.8 branch. >> When do you plan to rebase the nvme-6.8 on top of master ? >> It will be helpful, otherwise my patches will not apply cleanly on your >> branch. :) > > linux-nvme pulls go through Jens' linux-block repo, so we have to be > based on the appropriate branch from there. We already have some late > fixes in 6.7 that create minor merge conflicts for our existing 6.8 > branch, so we may provide a reference resolution branch with the pull > request if conflicts are non-trivial. That might be an option for your > fixes if you can make them work atop existing nvme-6.8 without the > conflicting 6.7 changes. > > Sometime after the next merge window opens, Jens will rebase his 6.8 > block tree to Linus', and we usually get a 2nd feature pull request > within the merge window from that new baseline. That might be an option > if you want to wait a couple more weeks. I see. I think that after finishing the latest testing I'll send the version on top of nvme-6.8 + my local branch patches I took from 6.7. We will start the reviewing process and probably will converge in a week or two. Then we will see what is the status of the linux-block repo and decide how to continue.