[PATCH] nvme: set NCC and NIC effects for NS mgmt and attach
Tokunori Ikegami
ikegami.t at gmail.com
Sat Apr 18 06:05:59 PDT 2026
This is to make sure scan_work done for the commands.
Signed-off-by: Tokunori Ikegami <ikegami.t at 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
More information about the Linux-nvme
mailing list