aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvme/target
diff options
context:
space:
mode:
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>2021-05-10 12:15:36 -0700
committerChristoph Hellwig <hch@lst.de>2021-05-11 18:30:45 +0200
commit3651aaacd10b2f8cee3780c490fc2df55bd4f543 (patch)
treeaf2ee1a2b0a3e02ee24a0e49191d128e5999f33e /drivers/nvme/target
parentnvmet-rdma: Fix NULL deref when SEND is completed with error (diff)
downloadlinux-dev-3651aaacd10b2f8cee3780c490fc2df55bd4f543.tar.xz
linux-dev-3651aaacd10b2f8cee3780c490fc2df55bd4f543.zip
nvmet: demote discovery cmd parse err msg to debug
Host can send invalid commands and flood the target with error messages for the discovery controller. Demote the error message from pr_err() to pr_debug( in nvmet_parse_discovery_cmd().  Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/target')
-rw-r--r--drivers/nvme/target/discovery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/target/discovery.c b/drivers/nvme/target/discovery.c
index 4845d12e374a..fc3645fc2c24 100644
--- a/drivers/nvme/target/discovery.c
+++ b/drivers/nvme/target/discovery.c
@@ -379,7 +379,7 @@ u16 nvmet_parse_discovery_cmd(struct nvmet_req *req)
req->execute = nvmet_execute_disc_identify;
return 0;
default:
- pr_err("unhandled cmd %d\n", cmd->common.opcode);
+ pr_debug("unhandled cmd %d\n", cmd->common.opcode);
req->error_loc = offsetof(struct nvme_common_command, opcode);
return NVME_SC_INVALID_OPCODE | NVME_SC_DNR;
}