Skip to contentSkip to conversation

Block patches

GIT PULL Applied Stefan Hajnoczi 2 participants 3 messages Jan 14, 2020 Block layer

lore
Share & tools
lore
#0 lore raw

The following changes since commit dc65a5bdc9fa543690a775b50d4ffbeb22c56d6d:

Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-5.0-20200108' into staging (2020-01-10 16:15:04 +0000)

are available in the Git repository at:

https://github.com/stefanha/qemu.git tags/block-pull-request

for you to fetch changes up to 2558cb8dd4150512bc8ae6d505cdcd10d0cc46bb:

linux-aio: increasing MAX_EVENTS to a larger hardcoded value (2020-01-13 16:41:45 +0000)

----------------------------------------------------------------
Pull request

----------------------------------------------------------------

Wangyong (1):
linux-aio: increasing MAX_EVENTS to a larger hardcoded value

 block/linux-aio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.24.1
#1 lore raw

[PULL 1/1] linux-aio: increasing MAX_EVENTS to a larger hardcoded value

From: Wangyong <[email protected]>

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.

Message-id: [email protected]
Message-Id: <[email protected]>

---
 block/linux-aio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/linux-aio.c +1 -1
index c7eca9a256..91204a25a2 100644
@@ -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;
Signature · 1 line
2.24.1
#2 lore raw
In reply to Stefan Hajnoczi
Quoted 16 lines · Stefan Hajnoczi

The following changes since commit dc65a5bdc9fa543690a775b50d4ffbeb22c56d6d:

Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-5.0-20200108' into staging (2020-01-10 16:15:04 +0000)

are available in the Git repository at:

https://github.com/stefanha/qemu.git tags/block-pull-request

for you to fetch changes up to 2558cb8dd4150512bc8ae6d505cdcd10d0cc46bb:

linux-aio: increasing MAX_EVENTS to a larger hardcoded value (2020-01-13 16:41:45 +0000)

----------------------------------------------------------------
Pull request

Quoted 7 lines

----------------------------------------------------------------

Wangyong (1):
linux-aio: increasing MAX_EVENTS to a larger hardcoded value

 block/linux-aio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/5.0
for any user-visible changes.

-- PMM