nvmf: suppress error message for invalid nsid
Use a DEBUGLOG instead of ERRLOG when nvmf target receives a command for an invalid nsid. This condition can happen when namespaces are removed while I/O is in progress, so we don't want to create lots of error messages when that happens. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I629119c37f8744541708ca8fe2afd5d9dcef0e54 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5766 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Michael Haeuptle <michaelhaeuptle@gmail.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
e84cf46f38
commit
d82118485d
@ -3351,7 +3351,7 @@ nvmf_ctrlr_process_io_cmd(struct spdk_nvmf_request *req)
|
|||||||
|
|
||||||
ns = _nvmf_subsystem_get_ns(ctrlr->subsys, nsid);
|
ns = _nvmf_subsystem_get_ns(ctrlr->subsys, nsid);
|
||||||
if (ns == NULL || ns->bdev == NULL) {
|
if (ns == NULL || ns->bdev == NULL) {
|
||||||
SPDK_ERRLOG("Unsuccessful query for nsid %u\n", cmd->nsid);
|
SPDK_DEBUGLOG(nvmf, "Unsuccessful query for nsid %u\n", cmd->nsid);
|
||||||
response->status.sc = SPDK_NVME_SC_INVALID_NAMESPACE_OR_FORMAT;
|
response->status.sc = SPDK_NVME_SC_INVALID_NAMESPACE_OR_FORMAT;
|
||||||
response->status.dnr = 1;
|
response->status.dnr = 1;
|
||||||
return SPDK_NVMF_REQUEST_EXEC_STATUS_COMPLETE;
|
return SPDK_NVMF_REQUEST_EXEC_STATUS_COMPLETE;
|
||||||
|
Loading…
Reference in New Issue
Block a user