diff mbox series

scsi_error: Remove scsi_block_when_processing_errors: message

Message ID 1539722356.20579.2.camel@redhat.com (mailing list archive)
State Accepted
Headers show
Series scsi_error: Remove scsi_block_when_processing_errors: message | expand

Commit Message

Laurence Oberman Oct. 16, 2018, 8:39 p.m. UTC
This message floods the log when enabling mask 0x7 for
 /proc/sys/dev/scsi/logging_level 
 xxxxxxxx kernel: scsi_block_when_processing_errors: rtn: 1 
Its not needed and makes tracing just scsi_eh* messages way too verbose
so get rid of it

Signed-off-by: Laurence Oberman <loberman@redhat.com>

---
 drivers/scsi/scsi_error.c | 3 ---
 1 file changed, 3 deletions(-)

 EXPORT_SYMBOL(scsi_block_when_processing_errors);
-- 
1.8.3.1

Comments

Hannes Reinecke Oct. 17, 2018, 6:09 a.m. UTC | #1
On 10/16/18 10:39 PM, Laurence Oberman wrote:
> This message floods the log when enabling mask 0x7 for
>   /proc/sys/dev/scsi/logging_level
>   xxxxxxxx kernel: scsi_block_when_processing_errors: rtn: 1
> Its not needed and makes tracing just scsi_eh* messages way too verbose
> so get rid of it
> 
> Signed-off-by: Laurence Oberman <loberman@redhat.com>
> 
> ---
>   drivers/scsi/scsi_error.c | 3 ---
>   1 file changed, 3 deletions(-)
> 
> diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c
> index b7a8fdf..c736d61 100644
> --- a/drivers/scsi/scsi_error.c
> +++ b/drivers/scsi/scsi_error.c
> @@ -338,9 +338,6 @@ int scsi_block_when_processing_errors(struct
> scsi_device *sdev)
>   
>   	online = scsi_device_online(sdev);
>   
> -	SCSI_LOG_ERROR_RECOVERY(5, sdev_printk(KERN_INFO, sdev,
> -		"%s: rtn: %d\n", __func__, online));
> -
>   	return online;
>   }
>   EXPORT_SYMBOL(scsi_block_when_processing_errors);
> -- 
> 1.8.3.1
> 
Indeed.

Reviewed-by: Hannes Reinecke <hare@suse.com>

Cheers,

Hannes
Dupuis, Chad Oct. 17, 2018, 2:23 p.m. UTC | #2
On Tue, 16 Oct 2018, 4:39pm, Laurence Oberman wrote:

> External Email
> 
> This message floods the log when enabling mask 0x7 for
>  /proc/sys/dev/scsi/logging_level
>  xxxxxxxx kernel: scsi_block_when_processing_errors: rtn: 1
> Its not needed and makes tracing just scsi_eh* messages way too verbose
> so get rid of it
> 
> Signed-off-by: Laurence Oberman <loberman@redhat.com>
> 
> ---
>  drivers/scsi/scsi_error.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c
> index b7a8fdf..c736d61 100644
> --- a/drivers/scsi/scsi_error.c
> +++ b/drivers/scsi/scsi_error.c
> @@ -338,9 +338,6 @@ int scsi_block_when_processing_errors(struct
> scsi_device *sdev)
> 
>         online = scsi_device_online(sdev);
> 
> -       SCSI_LOG_ERROR_RECOVERY(5, sdev_printk(KERN_INFO, sdev,
> -               "%s: rtn: %d\n", __func__, online));
> -
>         return online;
>  }
>  EXPORT_SYMBOL(scsi_block_when_processing_errors);
> --
> 1.8.3.1
> 

Hit this a few times myself.  Thanks for taking it out.

Reviewed-by: Chad Dupuis <chad.dupuis@cavium.com>
Ewan Milne Oct. 17, 2018, 2:26 p.m. UTC | #3
----- Original Message -----
From: "Laurence Oberman" <loberman@redhat.com>
To: "linux-scsi" <linux-scsi@vger.kernel.org>
Cc: "Hannes Reinecke" <hare@suse.de>, "Ewan Milne" <emilne@redhat.com>, "Bart Van Assche" <Bart.VanAssche@wdc.com>, "James Bottomley" <jbottomley@parallels.com>
Sent: Tuesday, October 16, 2018 4:39:16 PM
Subject: [PATCH] scsi_error: Remove scsi_block_when_processing_errors: message

This message floods the log when enabling mask 0x7 for
 /proc/sys/dev/scsi/logging_level 
 xxxxxxxx kernel: scsi_block_when_processing_errors: rtn: 1 
Its not needed and makes tracing just scsi_eh* messages way too verbose
so get rid of it

Signed-off-by: Laurence Oberman <loberman@redhat.com>

---
 drivers/scsi/scsi_error.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c
index b7a8fdf..c736d61 100644
--- a/drivers/scsi/scsi_error.c
+++ b/drivers/scsi/scsi_error.c
@@ -338,9 +338,6 @@ int scsi_block_when_processing_errors(struct
scsi_device *sdev)
 
 	online = scsi_device_online(sdev);
 
-	SCSI_LOG_ERROR_RECOVERY(5, sdev_printk(KERN_INFO, sdev,
-		"%s: rtn: %d\n", __func__, online));
-
 	return online;
 }
 EXPORT_SYMBOL(scsi_block_when_processing_errors);
-- 
1.8.3.1

Yes, agreed.

Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Martin K. Petersen Oct. 18, 2018, 12:57 a.m. UTC | #4
Laurence,

Patch completely mangled by your mailer, please use git send-email for
submissions. I applied the change by hand.

Thanks!
diff mbox series

Patch

diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c
index b7a8fdf..c736d61 100644
--- a/drivers/scsi/scsi_error.c
+++ b/drivers/scsi/scsi_error.c
@@ -338,9 +338,6 @@  int scsi_block_when_processing_errors(struct
scsi_device *sdev)
 
 	online = scsi_device_online(sdev);
 
-	SCSI_LOG_ERROR_RECOVERY(5, sdev_printk(KERN_INFO, sdev,
-		"%s: rtn: %d\n", __func__, online));
-
 	return online;
 }