Commit 844c6a1
scsi: RDMA/srp: Don't set a max_segment_size when virt_boundary_mask is set
virt_boundary_mask implies an unlimited max_segment_size. Setting both
can lead to data corruption because __blk_rq_map_sg() can split requests
so that the virt_boundary_mask is not respected if max_segment_size is
not UINT_MAX.
Signed-off-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Hannes Reinecke <[email protected]>
Reviewed-by: John Garry <[email protected]>
Acked-by: Bart Van Assche <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>1 parent 8889676 commit 844c6a1
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3705 | 3705 | | |
3706 | 3706 | | |
3707 | 3707 | | |
3708 | | - | |
3709 | 3708 | | |
3710 | | - | |
| 3709 | + | |
| 3710 | + | |
| 3711 | + | |
3711 | 3712 | | |
3712 | 3713 | | |
3713 | 3714 | | |
| |||
0 commit comments