summaryrefslogtreecommitdiff
path: root/drivers/nvme/target/admin-cmd.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-03-22 11:08:59 +0300
committerChristoph Hellwig <hch@lst.de>2023-04-13 09:55:05 +0300
commitc5a9abfad9fb010c39defeee0c939bfa9430a5a3 (patch)
tree0c8998dd972f945479ddc575a226ba3baa87aee1 /drivers/nvme/target/admin-cmd.c
parent932635356618c19317c5b306b320368525cd1961 (diff)
downloadlinux-c5a9abfad9fb010c39defeee0c939bfa9430a5a3.tar.xz
nvmet: remove nvmet_req_cns_error_complete
Just fold it into the only caller. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Diffstat (limited to 'drivers/nvme/target/admin-cmd.c')
-rw-r--r--drivers/nvme/target/admin-cmd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/nvme/target/admin-cmd.c b/drivers/nvme/target/admin-cmd.c
index afdf69f92599..39cb570f833d 100644
--- a/drivers/nvme/target/admin-cmd.c
+++ b/drivers/nvme/target/admin-cmd.c
@@ -721,7 +721,10 @@ static void nvmet_execute_identify(struct nvmet_req *req)
break;
}
- nvmet_req_cns_error_complete(req);
+ pr_debug("unhandled identify cns %d on qid %d\n",
+ req->cmd->identify.cns, req->sq->qid);
+ req->error_loc = offsetof(struct nvme_identify, cns);
+ nvmet_req_complete(req, NVME_SC_INVALID_FIELD | NVME_SC_DNR);
}
/*