[PATCH 18/19] nvme-target: do not check authentication status for I/O commands twice
Hannes Reinecke
hare at kernel.org
Wed May 8 03:23:04 PDT 2024
nvmet_check_ctrl_status() checks the authentication status, so
we don't need to do that prior to calling it.
Signed-off-by: Hannes Reinecke <hare at kernel.org>
Reviewed-by: Sagi Grimberg <sagi at grimberg.me>
---
drivers/nvme/target/core.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/nvme/target/core.c b/drivers/nvme/target/core.c
index 8860a3eb71ec..3cdea56aedcd 100644
--- a/drivers/nvme/target/core.c
+++ b/drivers/nvme/target/core.c
@@ -891,9 +891,6 @@ static u16 nvmet_parse_io_cmd(struct nvmet_req *req)
if (nvme_is_fabrics(cmd))
return nvmet_parse_fabrics_io_cmd(req);
- if (unlikely(!nvmet_check_auth_status(req)))
- return NVME_SC_AUTH_REQUIRED | NVME_SC_DNR;
-
ret = nvmet_check_ctrl_status(req);
if (unlikely(ret))
return ret;
--
2.35.3
More information about the Linux-nvme
mailing list