nvmet: make the error message more generic
Subsystems (2)
PATCH 1/1 nvmet: make the error message more generic
"nvmet_check_ctrl_status()" is called from admin-cmd.c along with io-cmd.c, make the error message more generic.
Signed-off-by Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>
--- drivers/nvme/target/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/nvme/target/core.c +2 -2
@@ -710,13 +710,13 @@ u16 nvmet_ctrl_find_get(const char *subsysnqn, const char *hostnqn, u16 cntlid,u16 nvmet_check_ctrl_status (struct nvmet_req *req,struct nvme_command *cmd) {if (unlikely (!(req->sq->ctrl->cc &NVME_CC_ENABLE ))) { -pr_err ("got io cmd %d while CC.EN == 0 on qid = %d\n" , +pr_err ("got cmd %d while CC.EN == 0 on qid = %d\n" , cmd->common.opcode, req->sq->qid);return NVME_SC_CMD_SEQ_ERROR |NVME_SC_DNR ; }if (unlikely (!(req->sq->ctrl->csts &NVME_CSTS_RDY ))) { -pr_err ("got io cmd %d while CSTS.RDY == 0 on qid = %d\n" , +pr_err ("got cmd %d while CSTS.RDY == 0 on qid = %d\n" , cmd->common.opcode, req->sq->qid); req->ns =NULL ;return NVME_SC_CMD_SEQ_ERROR |NVME_SC_DNR ;
Signature · 1 line
2.14.1
PATCH 1/1 nvmet: make the error message more generic
Looks good,
Reviewed-by: Johannes Thumshirn <jthumshirn at suse.de>
Signature · 6 lines
Johannes Thumshirn Storage jthumshirn at suse.de +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N?rnberg GF: Felix Imend?rffer, Jane Smithard, Graham Norton HRB 21284 (AG N?rnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850
PATCH 1/1 nvmet: make the error message more generic
In reply to Chaitanya KulkarniQuoted 4 lines · Chaitanya Kulkarni
"
nvmet_check_ctrl_status()" is called fromadmin-cmd.calong withio-cmd.c, make the error message more generic.Signed-off-by Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>
Looks good,
Reviewed-by Christoph Hellwig <hch at lst.de>
Christoph Hellwig
AppliedPATCH 1/1 nvmet: make the error message more generic
In reply to Chaitanya KulkarniThanks,
applied to nvme-4.18-2