From: Fred Herard Date: Mon, 11 Mar 2019 22:41:43 +0000 (-0400) Subject: scsi: scsi_transport_iscsi: redirect conn error to console X-Git-Tag: v4.1.12-124.31.3~246 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=3ff6d3f510e141315bebc2a903b0802db49277a5;p=users%2Fjedix%2Flinux-maple.git scsi: scsi_transport_iscsi: redirect conn error to console This commit changes "detected conn error" printk log level from KERN_INFO to KERN_WARNING. This change is made with the assumption that KERN_WARNING messages are configured to be redirected to console. It is particularly useful to have detected connection errors redirected to console when using iscsi boot device as it may give clues as to why the system appears to be hung. Orabug: 29469714 Signed-off-by: Fred Herard Reviewed-by: Allen Pais Reviewed-by: Joe Jin Signed-off-by: Somasundaram Krishnasamy --- diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c index ebcd7c667768..5f92d22551af 100644 --- a/drivers/scsi/scsi_transport_iscsi.c +++ b/drivers/scsi/scsi_transport_iscsi.c @@ -2463,7 +2463,7 @@ void iscsi_conn_error_event(struct iscsi_cls_conn *conn, enum iscsi_err error) iscsi_multicast_skb(skb, ISCSI_NL_GRP_ISCSID, GFP_ATOMIC); - iscsi_cls_conn_printk(KERN_INFO, conn, "detected conn error (%d)\n", + iscsi_cls_conn_printk(KERN_WARNING, conn, "detected conn error (%d)\n", error); } EXPORT_SYMBOL_GPL(iscsi_conn_error_event);