]> Git Repo - linux.git/commit
blk-core: use pr_warn_ratelimited() in bio_check_ro()
authorYu Kuai <[email protected]>
Tue, 7 Nov 2023 11:12:47 +0000 (19:12 +0800)
committerJens Axboe <[email protected]>
Tue, 7 Nov 2023 15:15:23 +0000 (08:15 -0700)
commit1b0a151c10a6d823f033023b9fdd9af72a89591b
treee47ea9a563d57bd62e306c986c1b6ac2e2f50dbb
parent327462725b0f759f093788dfbcb2f1fd132f956b
blk-core: use pr_warn_ratelimited() in bio_check_ro()

If one of the underlying disks of raid or dm is set to read-only, then
each io will generate new log, which will cause message storm. This
environment is indeed problematic, however we can't make sure our
naive custormer won't do this, hence use pr_warn_ratelimited() to
prevent message storm in this case.

Signed-off-by: Yu Kuai <[email protected]>
Fixes: 57e95e4670d1 ("block: fix and cleanup bio_check_ro")
Signed-off-by: Ye Bin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
block/blk-core.c
This page took 0.053168 seconds and 4 git commands to generate.