提交 05787e34 编写于 作者: K Konstantin Shelekhin 提交者: Martin K. Petersen

scsi: target: core: Make logs less verbose

Change the log level of the following message to debug:

	Unsupported SCSI Opcode 0xXX, sending CHECK_CONDITION.

This message is mostly helpful during debugging sessions in order to
understand errors on the initiator side. But most of the time it's just
useless and makes reading logs much harder.

It gets particularly annoying if there are many initiators that come and go
or if an initiator runs a program that does not care whether the command is
supported and just keeps sending it.

Link: https://lore.kernel.org/r/20210929114959.705852-1-k.shelekhin@yadro.comReviewed-by: NRoman Bolshakov <r.bolshakov@yadro.com>
Reviewed-by: NLee Duncan <lduncan@suse.com>
Signed-off-by: NKonstantin Shelekhin <k.shelekhin@yadro.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 87bf6a6b
...@@ -1511,10 +1511,10 @@ target_cmd_parse_cdb(struct se_cmd *cmd) ...@@ -1511,10 +1511,10 @@ target_cmd_parse_cdb(struct se_cmd *cmd)
ret = dev->transport->parse_cdb(cmd); ret = dev->transport->parse_cdb(cmd);
if (ret == TCM_UNSUPPORTED_SCSI_OPCODE) if (ret == TCM_UNSUPPORTED_SCSI_OPCODE)
pr_warn_ratelimited("%s/%s: Unsupported SCSI Opcode 0x%02x, sending CHECK_CONDITION.\n", pr_debug_ratelimited("%s/%s: Unsupported SCSI Opcode 0x%02x, sending CHECK_CONDITION.\n",
cmd->se_tfo->fabric_name, cmd->se_tfo->fabric_name,
cmd->se_sess->se_node_acl->initiatorname, cmd->se_sess->se_node_acl->initiatorname,
cmd->t_task_cdb[0]); cmd->t_task_cdb[0]);
if (ret) if (ret)
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册