Re: [PATCH] block: rate-limit capacity change info log
From: Chaitanya Kulkarni
Date: Mon Nov 17 2025 - 13:25:01 EST
On 11/16/25 21:34, Li Chen wrote:
From: Li Chen<chenl311@xxxxxxxxxxxxxxx>
loop devices under heavy stress-ng loop streessor can trigger many
capacity change events in a short time. Each event prints an info
message from set_capacity_and_notify(), flooding the console and
contributing to soft lockups on slow consoles.
Switch the printk in set_capacity_and_notify() to
pr_info_ratelimited() so frequent capacity changes do not spam
the log while still reporting occasional changes.
Cc:stable@xxxxxxxxxxxxxxx
Signed-off-by: Li Chen<chenl311@xxxxxxxxxxxxxxx>
Looks good.
Reviewed-by: Chaitanya Kulkarni <kch@xxxxxxxxxx>
-ck