Skip to content

Commit 3651aaa

Browse files
ChaitanayaKulkarniChristoph Hellwig
authored andcommitted
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>
1 parent 8cc365f commit 3651aaa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/nvme/target/discovery.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ u16 nvmet_parse_discovery_cmd(struct nvmet_req *req)
379379
req->execute = nvmet_execute_disc_identify;
380380
return 0;
381381
default:
382-
pr_err("unhandled cmd %d\n", cmd->common.opcode);
382+
pr_debug("unhandled cmd %d\n", cmd->common.opcode);
383383
req->error_loc = offsetof(struct nvme_common_command, opcode);
384384
return NVME_SC_INVALID_OPCODE | NVME_SC_DNR;
385385
}

0 commit comments

Comments
 (0)