diff options
author | Yu Kuai <yukuai3@huawei.com> | 2023-11-07 14:12:47 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-11-07 18:15:23 +0300 |
commit | 1b0a151c10a6d823f033023b9fdd9af72a89591b (patch) | |
tree | e47ea9a563d57bd62e306c986c1b6ac2e2f50dbb /samples/kobject | |
parent | 327462725b0f759f093788dfbcb2f1fd132f956b (diff) | |
download | linux-1b0a151c10a6d823f033023b9fdd9af72a89591b.tar.xz |
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 <yukuai3@huawei.com>
Fixes: 57e95e4670d1 ("block: fix and cleanup bio_check_ro")
Signed-off-by: Ye Bin <yebin10@huawei.com>
Link: https://lore.kernel.org/r/20231107111247.2157820-1-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'samples/kobject')
0 files changed, 0 insertions, 0 deletions