On Thu, Oct 08, 2020 at 09:23:44AM +0900, Tetsuo Handa wrote: > --- a/block/blk-core.c > +++ b/block/blk-core.c > @@ -803,8 +803,8 @@ static void handle_bad_sector(struct bio *bio, sector_t maxsector) > { > char b[BDEVNAME_SIZE]; > > - printk(KERN_INFO "attempt to access beyond end of device\n"); > - printk(KERN_INFO "%s: rw=%d, want=%Lu, limit=%Lu\n", > + printk_ratelimited(KERN_INFO "attempt to access beyond end of device\n"); > + printk_ratelimited(KERN_INFO "%s: rw=%d, want=%Lu, limit=%Lu\n", > bio_devname(bio, b), bio->bi_opf, > (unsigned long long)bio_end_sector(bio), > (long long)maxsector); Please use pr_info_ratelimited, and also remove the casts now that sector_t is guranteed to be an unsigned long long.