Re: [PATCH v3 1/7] file-posix: fix max_iov for /dev/sg devices

2021-06-15 Thread Max Reitz
On 03.06.21 15:37, Paolo Bonzini wrote: Even though it was only called for devices that have bs->sg set (which must be character devices), sg_get_max_segments looked at /sys/dev/block which only works for block devices. On Linux the sg driver has its own way to provide the maximum number of iove

Re: [PATCH v3 1/7] file-posix: fix max_iov for /dev/sg devices

2021-06-07 Thread Vladimir Sementsov-Ogievskiy
03.06.2021 16:37, Paolo Bonzini wrote: Even though it was only called for devices that have bs->sg set (which must be character devices), sg_get_max_segments looked at /sys/dev/block which only works for block devices. I assume, you keep /sys/dev/block code branch here only for following conve

Re: [PATCH v3 1/7] file-posix: fix max_iov for /dev/sg devices

2021-06-06 Thread Vladimir Sementsov-Ogievskiy
07.06.2021 08:39, Vladimir Sementsov-Ogievskiy wrote: 03.06.2021 16:37, Paolo Bonzini wrote: Even though it was only called for devices that have bs->sg set (which must be character devices), sg_get_max_segments looked at /sys/dev/block which only works for block devices. On Linux the sg driver

Re: [PATCH v3 1/7] file-posix: fix max_iov for /dev/sg devices

2021-06-06 Thread Vladimir Sementsov-Ogievskiy
03.06.2021 16:37, Paolo Bonzini wrote: Even though it was only called for devices that have bs->sg set (which must be character devices), sg_get_max_segments looked at /sys/dev/block which only works for block devices. On Linux the sg driver has its own way to provide the maximum number of iovec

[PATCH v3 1/7] file-posix: fix max_iov for /dev/sg devices

2021-06-03 Thread Paolo Bonzini
Even though it was only called for devices that have bs->sg set (which must be character devices), sg_get_max_segments looked at /sys/dev/block which only works for block devices. On Linux the sg driver has its own way to provide the maximum number of iovecs in a scatter/gather list. Signed-off-b