Loading
scsi: storvsc: Ratelimit warning logs to prevent VM denial of service
stable inclusion from stable-v6.6.75 commit 088bde862f8d3d0fc52e40e66a0484a246837087 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBSPQB Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=088bde862f8d3d0fc52e40e66a0484a246837087 -------------------------------- commit d2138eab8cde61e0e6f62d0713e45202e8457d6d upstream. If there's a persistent error in the hypervisor, the SCSI warning for failed I/O can flood the kernel log and max out CPU utilization, preventing troubleshooting from the VM side. Ratelimit the warning so it doesn't DoS the VM. Closes: https://github.com/microsoft/WSL/issues/9173 Signed-off-by:Easwar Hariharan <eahariha@linux.microsoft.com> Link: https://lore.kernel.org/r/20250107-eahariha-ratelimit-storvsc-v1-1-7fc193d1f2b0@linux.microsoft.com Reviewed-by:
Michael Kelley <mhklinux@outlook.com> Signed-off-by:
Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
Wen Zhiwei <wenzhiwei@kylinos.cn>