From: Wangyong <wang.yongD@h3c.com>
To: Stefan Hajnoczi <stefanha@redhat.com>,
"pbonzini@redhat.com" <pbonzini@redhat.com>,
"mark.kanda@oracle.com" <mark.kanda@oracle.com>,
"hch@lst.de" <hch@lst.de>
Cc: Changlimin <changlimin@h3c.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: [PATCH] linux-aio: increasing MAX_EVENTS to a larger hardcoded value
Date: Tue, 7 Jan 2020 06:01:01 +0000 [thread overview]
Message-ID: <faa5781afd354a96a0be152b288f636f@h3c.com> (raw)
Since commit 6040aedddb5f474a9c2304b6a432a652d82b3d3c "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 <wang.yongD@h3c.com>
---
block/linux-aio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/linux-aio.c b/block/linux-aio.c
index c7eca9a256..91204a25a2 100644
--- a/block/linux-aio.c
+++ b/block/linux-aio.c
@@ -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;
--
2.12.1.windows.1
next reply other threads:[~2020-01-07 6:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-07 6:01 Wangyong [this message]
2020-01-09 17:18 ` [PATCH] linux-aio: increasing MAX_EVENTS to a larger hardcoded value Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=faa5781afd354a96a0be152b288f636f@h3c.com \
--to=wang.yongd@h3c.com \
--cc=changlimin@h3c.com \
--cc=hch@lst.de \
--cc=mark.kanda@oracle.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).