Re: [PATCH] block/file-posix: Limit max_iov to IOV_MAX

2021-09-20 Thread Daniel P . Berrangé
CC'ing qemu-block list On Sat, Sep 18, 2021 at 12:06:58PM +0800, lishan wrote: > AIO read/write. The size of iocb->aio_nbytes in the kernel cannot exceed > UIO_MAXIOV = 1024. > max_segments read from the block device layer may be greater than UIO_MAXIOV, > this causes the ioq_submit interface to

Re: [PATCH] block/file-posix: Limit max_iov to IOV_MAX

2021-09-20 Thread Kevin Wolf
Am 18.09.2021 um 09:33 hat lishan geschrieben: > AIO read/write. The size of iocb->aio_nbytes in the kernel cannot exceed > UIO_MAXIOV = 1024. > max_segments read from the block device layer may be greater than UIO_MAXIOV, > this causes the ioq_submit interface to return a -22(-EINVAL) error resul

Re: [PATCH] block/file-posix: Limit max_iov to IOV_MAX

2021-09-19 Thread Markus Armbruster
lishan writes: > AIO read/write. The size of iocb->aio_nbytes in the kernel cannot exceed > UIO_MAXIOV = 1024. > max_segments read from the block device layer may be greater than UIO_MAXIOV, > this causes the ioq_submit interface to return a -22(-EINVAL) error result. > --- > block/file-posix.c

[PATCH] block/file-posix: Limit max_iov to IOV_MAX

2021-09-18 Thread lishan
AIO read/write. The size of iocb->aio_nbytes in the kernel cannot exceed UIO_MAXIOV = 1024. max_segments read from the block device layer may be greater than UIO_MAXIOV, this causes the ioq_submit interface to return a -22(-EINVAL) error result. --- block/file-posix.c | 3 ++- 1 file changed, 2 i

[PATCH] block/file-posix: Limit max_iov to IOV_MAX

2021-09-18 Thread lishan
AIO read/write. The size of iocb->aio_nbytes in the kernel cannot exceed UIO_MAXIOV = 1024. max_segments read from the block device layer may be greater than UIO_MAXIOV, this causes the ioq_submit interface to return a -22(-EINVAL) error result. --- block/file-posix.c | 3 ++- 1 file changed, 2 i