diff options
| author | Li Chen <chenl311@chinatelecom.cn> | 2025-11-17 13:34:07 +0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-11-17 11:30:24 -0700 |
| commit | 3179a5f7f86bcc3acd5d6fb2a29f891ef5615852 (patch) | |
| tree | 2f91d5bd6040b25c7c90fffa657ed4bc20928404 /tools/lib/python/kdoc/kdoc_files.py | |
| parent | ade260ca858627b21be87711b1e12a7bf80c0261 (diff) | |
block: rate-limit capacity change info log
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@vger.kernel.org
Signed-off-by: Li Chen <chenl311@chinatelecom.cn>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/lib/python/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions
