nvme: show command manual completion

If command is completed manually (e.g.: driver decide to fail this
command from some reason) not all NOTICELOG informations about this
command are valid. To not get confused who completed the command (driver
or a device) show addtional information when command is completed
manually (using NOTICELOG like nvme_qpair_print_command and
nvme_qpair_print_completion do).

Change-Id: I7211bd165aec142ad11e806fa3031371375edd2f
Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-on: https://review.gerrithub.io/411293
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Pawel Wodkowski 2018-05-15 18:41:59 +02:00 committed by Changpeng Liu
parent aa2789e926
commit 7c57c0f2ad

View File

@ -365,6 +365,7 @@ nvme_qpair_manual_complete_request(struct spdk_nvme_qpair *qpair,
error = spdk_nvme_cpl_is_error(&cpl);
if (error && print_on_error) {
SPDK_NOTICELOG("Command completed manually:\n");
nvme_qpair_print_command(qpair, &req->cmd);
nvme_qpair_print_completion(qpair, &cpl);
}