mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
nvmet: Introduced helper routine for controller status check.
This patch introduces helper function for checking controller status during admin and io command processing which returns u16 status. As to bring consistency on returning status, other friend functions also now return u16 status instead of int to match the spec. As part of the theseerror log prints in also prints qid on which command error occured. Signed-off-by: Parav Pandit <parav@mellanox.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
parent
4151dd9a58
commit
64a0ca88ea
6 changed files with 41 additions and 34 deletions
|
@ -73,7 +73,7 @@ static void nvmet_execute_prop_get(struct nvmet_req *req)
|
|||
nvmet_req_complete(req, status);
|
||||
}
|
||||
|
||||
int nvmet_parse_fabrics_cmd(struct nvmet_req *req)
|
||||
u16 nvmet_parse_fabrics_cmd(struct nvmet_req *req)
|
||||
{
|
||||
struct nvme_command *cmd = req->cmd;
|
||||
|
||||
|
@ -214,7 +214,7 @@ out_ctrl_put:
|
|||
goto out;
|
||||
}
|
||||
|
||||
int nvmet_parse_connect_cmd(struct nvmet_req *req)
|
||||
u16 nvmet_parse_connect_cmd(struct nvmet_req *req)
|
||||
{
|
||||
struct nvme_command *cmd = req->cmd;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue