]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
scsi: scsi_transport_iscsi: redirect conn error to console
authorFred Herard <fred.herard@oracle.com>
Mon, 11 Mar 2019 22:41:43 +0000 (18:41 -0400)
committerSomasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Wed, 13 Mar 2019 23:44:20 +0000 (16:44 -0700)
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 <fred.herard@oracle.com>
Reviewed-by: Allen Pais <allen.pais@oracle.com>
Reviewed-by: Joe Jin <joe.jin@oracle.com>
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
drivers/scsi/scsi_transport_iscsi.c

index ebcd7c66776878d959edd7d377f80b69f97f2dae..5f92d22551af7da78308f735db3678b6913e46fe 100644 (file)
@@ -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);