Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

block: tone down bio_check_eod

bdev_nr_sectors() == 0 is a pattern used for block devices that have
been hot removed, don't spam the log about them.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20250818101102.1604551-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Christoph Hellwig and committed by
Jens Axboe
d0a2b527 47b71abd

+1 -1
+1 -1
block/blk-core.c
··· 557 557 sector_t maxsector = bdev_nr_sectors(bio->bi_bdev); 558 558 unsigned int nr_sectors = bio_sectors(bio); 559 559 560 - if (nr_sectors && 560 + if (nr_sectors && maxsector && 561 561 (nr_sectors > maxsector || 562 562 bio->bi_iter.bi_sector > maxsector - nr_sectors)) { 563 563 pr_info_ratelimited("%s: attempt to access beyond end of device\n"