scsi: storvsc: Explicitly set max_segment_size to UINT_MAX
scsi: storvsc: Explicitly set max_segment_size to UINT_MAX
JIRA: https://issues.redhat.com/browse/RHEL-97171 Upstream Status: From upstream Martin Petersen's linux-scsi branch "fixes" git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi
storvsc uses virt_boundary to define 'segment' and does not define max_segment_size.
Explicitly set max_segment_size to UINT_MAX, otherwise __blk_rq_map_sg() takes default 64K max segment size and splits one virtual segment into two parts, then breaks virt_boundary limit.
Before commit ec84ca40 ("scsi: block: Remove now unused queue limits helpers"), max segment size was set to UINT_MAX in the case where virt_boundary was defined.
Cc: K. Y. Srinivasan kys@microsoft.com Cc: Haiyang Zhang haiyangz@microsoft.com Cc: Wei Liu wei.liu@kernel.org Cc: Christoph Hellwig hch@lst.de Cc: Ewan D. Milne emilne@redhat.com Cc: Laurence Oberman loberman@redhat.com Fixes: ec84ca40 ("scsi: block: Remove now unused queue limits helpers") Signed-off-by: Ming Lei ming.lei@redhat.com Link: https://lore.kernel.org/r/20250616160509.52491-1-ming.lei@redhat.com Signed-off-by: Martin K. Petersen martin.petersen@oracle.com (cherry picked from commit 19ec970841ca3135e53268a6bb08a850880479bb) Signed-off-by: Ewan D. Milne emilne@redhat.com