linux-aio: increasing MAX_EVENTS to a larger hardcoded value

Since commit 6040aedddb "virtio-blk:
make queue size configurable",if the user set the queue size to
more than 128 ,it will not take effect. That's because linux aio's
maximum outstanding requests at a time is always less than or equal
to 128.

This patch simply increase MAX_EVENTS to a larger hardcoded value of
1024 as a shortterm fix.

Signed-off-by: wangyong <[email protected]>
Message-id: [email protected]
Message-Id: <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
This commit is contained in:
Wangyong authored and Stefan Hajnoczi committed 2020-01-13 16:41:45 +00:00
1 parent dc65a5bdc9
commit 2558cb8dd4
1 file changed
+1 -1
+1 -1
View File
@@ -26,7 +26,7 @@
* than this we will get EAGAIN from io_submit which is communicated to
* the guest as an I/O error.
*/
#define MAX_EVENTS 128
#define MAX_EVENTS 1024
struct qemu_laiocb {
Coroutine *co;