diff options
author | Yu Kuai <yukuai3@huawei.com> | 2023-11-28 15:30:27 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-11-28 22:11:08 +0300 |
commit | 67d995e069535c32829f5d368d919063492cec6e (patch) | |
tree | 6ac8ebf5e8039ac198a16c9871b82c3c412710c1 /include/linux | |
parent | fad907cffd4bde7384812cf32fcf69becab805cc (diff) | |
download | linux-67d995e069535c32829f5d368d919063492cec6e.tar.xz |
block: warn once for each partition in bio_check_ro()
Commit 1b0a151c10a6 ("blk-core: use pr_warn_ratelimited() in
bio_check_ro()") fix message storm by limit the rate, however, there
will still be lots of message in the long term. Fix it better by warn
once for each partition.
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20231128123027.971610-3-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/blk_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index f7d40692dd94..b29ebd53417d 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -70,6 +70,7 @@ struct block_device { #ifdef CONFIG_FAIL_MAKE_REQUEST bool bd_make_it_fail; #endif + bool bd_ro_warned; /* * keep this out-of-line as it's both big and not needed in the fast * path |