linux-stable/drivers/hv
Anssi Hannula 4e2ce79413 hv_balloon: rate-limit "Unhandled message" warning
[ Upstream commit 1d7286729a ]

For a couple of times I have encountered a situation where

  hv_balloon: Unhandled message: type: 12447

is being flooded over 1 million times per second with various values,
filling the log and consuming cycles, making debugging difficult.

Add rate limiting to the message.

Most other Hyper-V drivers already have similar rate limiting in their
message callbacks.

The cause of the floods in my case was probably fixed by 96d9d1fa5c
("Drivers: hv: balloon: account for vmbus packet header in
max_pkt_size").

Fixes: 9aa8b50b2b ("Drivers: hv: Add Hyper-V balloon driver")
Signed-off-by: Anssi Hannula <anssi.hannula@bitwise.fi>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20220222141400.98160-1-anssi.hannula@bitwise.fi
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 13:58:14 +02:00
..
channel.c
channel_mgmt.c Drivers: hv: vmbus: Initialize request offers message for Isolation VM 2022-01-05 20:39:14 +00:00
connection.c
hv.c
hv_balloon.c hv_balloon: rate-limit "Unhandled message" warning 2022-04-08 13:58:14 +02:00
hv_common.c Drivers: hv: Fix definition of hypercall input & output arg variables 2021-12-28 14:18:43 +00:00
hv_debugfs.c
hv_fcopy.c
hv_kvp.c
hv_snapshot.c
hv_trace.c
hv_trace.h
hv_trace_balloon.h
hv_util.c
hv_utils_transport.c Drivers: hv: utils: Make use of the helper macro LIST_HEAD() 2022-02-09 14:33:21 +00:00
hv_utils_transport.h
hyperv_vmbus.h
Kconfig hv: utils: add PTP_1588_CLOCK to Kconfig to fix build 2021-11-28 21:22:35 +00:00
Makefile
ring_buffer.c
vmbus_drv.c Drivers: hv: vmbus: Rework use of DMA_BIT_MASK(64) 2022-02-07 17:55:30 +00:00