On 6/23/25 1:02 AM, Christoph Hellwig wrote:
virt_boundary_mask implies an unlimited max_segment_size. Setting both can lead to data corruption, and we're going to check for this in the SCSI midlayer soon.
Please make this patch description more detailed and mention that __blk_rq_map_sg() may split sg-lists such that the virt_boundary_mask is not respected if max_segment_size != UINT_MAX. Thanks, Bart.