mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-23 20:24:12 +08:00
nvmet-passthru: propagate status from id override functions
[ Upstream commitd76584e53f
] The id override functions return a status which is not propagated to the caller. Fixes:c1fef73f79
("nvmet: add passthru code to process commands") Signed-off-by: Daniel Wagner <dwagner@suse.de> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
fe1e395563
commit
9a3eb4816a
@ -226,13 +226,13 @@ static void nvmet_passthru_execute_cmd_work(struct work_struct *w)
|
|||||||
req->cmd->common.opcode == nvme_admin_identify) {
|
req->cmd->common.opcode == nvme_admin_identify) {
|
||||||
switch (req->cmd->identify.cns) {
|
switch (req->cmd->identify.cns) {
|
||||||
case NVME_ID_CNS_CTRL:
|
case NVME_ID_CNS_CTRL:
|
||||||
nvmet_passthru_override_id_ctrl(req);
|
status = nvmet_passthru_override_id_ctrl(req);
|
||||||
break;
|
break;
|
||||||
case NVME_ID_CNS_NS:
|
case NVME_ID_CNS_NS:
|
||||||
nvmet_passthru_override_id_ns(req);
|
status = nvmet_passthru_override_id_ns(req);
|
||||||
break;
|
break;
|
||||||
case NVME_ID_CNS_NS_DESC_LIST:
|
case NVME_ID_CNS_NS_DESC_LIST:
|
||||||
nvmet_passthru_override_id_descs(req);
|
status = nvmet_passthru_override_id_descs(req);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else if (status < 0)
|
} else if (status < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user