* [PATCH] nvme: set NCC and NIC effects for NS mgmt and attach
@ 2026-04-18 13:05 Tokunori Ikegami
0 siblings, 0 replies; only message in thread
From: Tokunori Ikegami @ 2026-04-18 13:05 UTC (permalink / raw)
To: linux-nvme; +Cc: Tokunori Ikegami
This is to make sure scan_work done for the commands.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
---
drivers/nvme/host/core.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index 1f973d88c830..1ed1fc866f3f 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -3448,8 +3448,10 @@ static int nvme_init_effects_log(struct nvme_ctrl *ctrl,
static void nvme_init_known_nvm_effects(struct nvme_ctrl *ctrl)
{
- struct nvme_effects_log *log = ctrl->effects;
+ struct nvme_effects_log *log = ctrl->effects;
+ log->acs[nvme_admin_ns_mgmt] |= cpu_to_le32(NVME_CMD_EFFECTS_NCC);
+ log->acs[nvme_admin_ns_attach] |= cpu_to_le32(NVME_CMD_EFFECTS_NIC);
log->acs[nvme_admin_format_nvm] |= cpu_to_le32(NVME_CMD_EFFECTS_LBCC |
NVME_CMD_EFFECTS_NCC |
NVME_CMD_EFFECTS_CSE_MASK);
--
2.51.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-04-18 13:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-18 13:05 [PATCH] nvme: set NCC and NIC effects for NS mgmt and attach Tokunori Ikegami
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox