From: Alex Tran <alex.t.tran@gmail.com>
To: Keith Busch <kbusch@kernel.org>, Jens Axboe <axboe@kernel.dk>,
Christoph Hellwig <hch@lst.de>, Sagi Grimberg <sagi@grimberg.me>
Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org,
Alex Tran <alex.t.tran@gmail.com>
Subject: [PATCH 1/2] nvme/host: move nvme_ns_info into nvme header file
Date: Sun, 21 Dec 2025 13:26:10 -0800 [thread overview]
Message-ID: <20251221-nvme_ns_validation-v1-1-9f7a385707af@gmail.com> (raw)
In-Reply-To: <20251221-nvme_ns_validation-v1-0-9f7a385707af@gmail.com>
The nvme_ns_info struct is moved into the nvme header file.
This is done because it is used as a field in the nvme_ns struct
to store the pending info being used in the following patch.
Signed-off-by: Alex Tran <alex.t.tran@gmail.com>
---
drivers/nvme/host/core.c | 15 ---------------
drivers/nvme/host/nvme.h | 15 +++++++++++++++
2 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index 7bf228df6001f1f4d0b3c570de285a5eb17bb08e..fab321e79b7cdbb89d96d950c1cc8c1128906770 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -33,21 +33,6 @@
#define NVME_MINORS (1U << MINORBITS)
-struct nvme_ns_info {
- struct nvme_ns_ids ids;
- u32 nsid;
- __le32 anagrpid;
- u8 pi_offset;
- u16 endgid;
- u64 runs;
- bool is_shared;
- bool is_readonly;
- bool is_ready;
- bool is_removed;
- bool is_rotational;
- bool no_vwc;
-};
-
unsigned int admin_timeout = 60;
module_param(admin_timeout, uint, 0644);
MODULE_PARM_DESC(admin_timeout, "timeout in seconds for admin commands");
diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h
index 9a5f28c5103c5c42777bd9309a983ef0196c1b95..ff4e7213131298a1a019eaa3822ca26f857b2443 100644
--- a/drivers/nvme/host/nvme.h
+++ b/drivers/nvme/host/nvme.h
@@ -525,6 +525,21 @@ enum nvme_ns_features {
NVME_NS_DEAC = 1 << 2, /* DEAC bit in Write Zeroes supported */
};
+struct nvme_ns_info {
+ struct nvme_ns_ids ids;
+ u32 nsid;
+ __le32 anagrpid;
+ u8 pi_offset;
+ u16 endgid;
+ u64 runs;
+ bool is_shared;
+ bool is_readonly;
+ bool is_ready;
+ bool is_removed;
+ bool is_rotational;
+ bool no_vwc;
+};
+
struct nvme_ns {
struct list_head list;
--
2.51.0
next prev parent reply other threads:[~2025-12-21 21:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-21 21:26 [PATCH 0/2] nvme/host: perform delayed retries upon non-fatal error received during nvme namespace validation Alex Tran
2025-12-21 21:26 ` Alex Tran [this message]
2025-12-21 21:26 ` [PATCH 2/2] nvme/host: add delayed retries upon non-fatal error during ns validation Alex Tran
2025-12-25 13:00 ` Sagi Grimberg
2025-12-26 0:09 ` Alex Tran
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251221-nvme_ns_validation-v1-1-9f7a385707af@gmail.com \
--to=alex.t.tran@gmail.com \
--cc=axboe@kernel.dk \
--cc=hch@lst.de \
--cc=kbusch@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=sagi@grimberg.me \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox