Re: [PATCH] block: bio_check_eod() needs to consider partition

2018-03-13 Thread Christoph Hellwig
On Thu, Mar 08, 2018 at 02:09:23PM -0700, Jens Axboe wrote: > On Thu, Mar 08 2018, Christoph Hellwig wrote: > > bio_check_eod() should check partiton size not the whole disk if > > bio->bi_partno is non-zero. > > > > Based on an earlier patch from Jiufei Xue. > > This doesn't apply, what did you

Re: [PATCH] block: bio_check_eod() needs to consider partition

2018-03-08 Thread Jens Axboe
On Thu, Mar 08 2018, Christoph Hellwig wrote: > bio_check_eod() should check partiton size not the whole disk if > bio->bi_partno is non-zero. > > Based on an earlier patch from Jiufei Xue. This doesn't apply, what did you generate it against? -- Jens Axboe

Re: [PATCH] block: bio_check_eod() needs to consider partition

2018-03-08 Thread Christoph Hellwig
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

Re: [PATCH] block: bio_check_eod() needs to consider partition

2018-03-08 Thread Jiufei Xue
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