linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] vsock: ratelimit unknown ioctl error message
@ 2020-10-23 12:21 Colin King
  2020-10-23 14:09 ` Stefano Garzarella
  0 siblings, 1 reply; 12+ messages in thread
From: Colin King @ 2020-10-23 12:21 UTC (permalink / raw)
  To: David S . Miller, Jakub Kicinski, Stefano Garzarella, netdev
  Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

When exercising the kernel with stress-ng with some ioctl tests the
"Unknown ioctl" error message is spamming the kernel log at a high
rate. Rate limit this message to reduce the noise.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 net/vmw_vsock/af_vsock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c
index 9e93bc201cc0..b8feb9223454 100644
--- a/net/vmw_vsock/af_vsock.c
+++ b/net/vmw_vsock/af_vsock.c
@@ -2072,7 +2072,7 @@ static long vsock_dev_do_ioctl(struct file *filp,
 		break;
 
 	default:
-		pr_err("Unknown ioctl %d\n", cmd);
+		pr_err_ratelimited("Unknown ioctl %d\n", cmd);
 		retval = -EINVAL;
 	}
 
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-10-26 18:37 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-23 12:21 [PATCH] vsock: ratelimit unknown ioctl error message Colin King
2020-10-23 14:09 ` Stefano Garzarella
2020-10-23 20:25   ` Jakub Kicinski
2020-10-23 21:30   ` David Laight
2020-10-26  8:43     ` Stefano Garzarella
2020-10-26  9:13       ` David Laight
2020-10-26  9:39         ` Stefano Garzarella
2020-10-26  9:46           ` David Laight
2020-10-26 10:01             ` Stefano Garzarella
2020-10-26 17:55               ` Jakub Kicinski
2020-10-26 18:24                 ` Stefano Garzarella
2020-10-26 18:37                   ` Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).