]> www.infradead.org Git - nvme.git/commit
block: warn once for each partition in bio_check_ro()
authorYu Kuai <yukuai3@huawei.com>
Tue, 28 Nov 2023 12:30:27 +0000 (20:30 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 28 Nov 2023 19:11:08 +0000 (12:11 -0700)
commit67d995e069535c32829f5d368d919063492cec6e
tree6ac8ebf5e8039ac198a16c9871b82c3c412710c1
parentfad907cffd4bde7384812cf32fcf69becab805cc
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>
block/blk-core.c
include/linux/blk_types.h