Re: [PATCH v3 2/7] scsi-generic: pass max_segments via max_iov field in BlockLimits

2021-06-15 Thread Paolo Bonzini
Yes, I try to avoid the 90 character limit (though sometimes that's hard too, hello QOM) but I don't think much of the lower one. Paolo Il mar 15 giu 2021, 18:20 Max Reitz ha scritto: > On 03.06.21 15:37, Paolo Bonzini wrote: > > I/O to a disk via read/write is not limited by the number of segm

Re: [PATCH v3 2/7] scsi-generic: pass max_segments via max_iov field in BlockLimits

2021-06-15 Thread Max Reitz
On 03.06.21 15:37, Paolo Bonzini wrote: I/O to a disk via read/write is not limited by the number of segments allowed by the host adapter; the kernel can split requests if needed, and the limit imposed by the host adapter can be very low (256k or so) to avoid that SG_IO returns EINVAL if memory i

Re: [PATCH v3 2/7] scsi-generic: pass max_segments via max_iov field in BlockLimits

2021-06-15 Thread Max Reitz
On 03.06.21 15:37, Paolo Bonzini wrote: I/O to a disk via read/write is not limited by the number of segments allowed by the host adapter; the kernel can split requests if needed, and the limit imposed by the host adapter can be very low (256k or so) to avoid that SG_IO returns EINVAL if memory i

[PATCH v3 2/7] scsi-generic: pass max_segments via max_iov field in BlockLimits

2021-06-03 Thread Paolo Bonzini
I/O to a disk via read/write is not limited by the number of segments allowed by the host adapter; the kernel can split requests if needed, and the limit imposed by the host adapter can be very low (256k or so) to avoid that SG_IO returns EINVAL if memory is heavily fragmented. Since this value is