On Thu, Mar 08, 2018 at 04:17:19PM +0800, Jiufei Xue wrote: > Hi Christoph, > > On 2018/3/8 下午3:46, Christoph Hellwig wrote: > > bio_check_eod() should check partiton size not the whole disk if > > bio->bi_partno is non-zero. > > > I think the check should be done twice if the bio->bi_partno is not zero, > one for the partition, and another for the whole disk after remap which > is add in the commit 5ddfe9691c91 > ("md: check bio address after mapping through partitions"). I disagree. See my other mail - if it fits inside the partition the partition rescan code already made sure it also fits inside the device.