Block patches
The following changes since commit 5142ca078d1cbc0f77b0f385d28cdb3e504e62bd:
Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2020-04-02 20:18:25 +0100)
are available in the Git repository at:
https://github.com/stefanha/qemu.git tags/block-pull-request
for you to fetch changes up to ae60ab7eb20715fa63cca1b0bb4493e160da51ce:
aio-posix: fix test-aio /aio/event/wait with fdmon-io_uring (2020-04-03 12:42:40 +0100)
----------------------------------------------------------------
Pull request
----------------------------------------------------------------
Stefan Hajnoczi (1):
aio-posix: fix test-aio /aio/event/wait with fdmon-io_uring
util/fdmon-io_uring.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
Signature · 1 line
2.25.1
[PULL for-5.0 1/1] aio-posix: fix test-aio /aio/event/wait with fdmon-io_uring
When a file descriptor becomes ready we must re-arm POLL_ADD. This is done by adding an sqe to the io_uring sq ring. The ->need_wait() function wasn't taking pending sqes into account and therefore io_uring_submit_and_wait() was not being called. Polling for cqes failed to detect fd readiness since we hadn't submitted the sqe to io_uring.
This patch fixes the following tests/test-aio -p /aio/event/wait failure:
ok 11 /aio/event/wait
**
ERROR:tests/test-aio.c:374:test_flush_event_notifier: assertion failed: (aio_poll(ctx, false))
Message-id: [email protected]
("aio-posix: add io_uring fd monitoring implementation")
--- util/fdmon-io_uring.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
util/fdmon-io_uring.c +6 -1
@@ -295,7 +295,12 @@ static bool fdmon_io_uring_need_wait(AioContext *ctx)return true; } -/* Do we need to submit new io_uring sqes? */ +/* Are there pending sqes to submit? */ +if (io_uring_sq_ready (&ctx->fdmon_io_uring)) { +return true; + } + +/* Do we need to process AioHandlers for io_uring changes? */ if (!QSLIST_EMPTY_RCU (&ctx->submit_list)) {return true; }
Signature · 1 line
2.25.1
Peter Maydell
AppliedQuoted 9 lines · Stefan Hajnoczi
The following changes since commit
5142ca078d1cbc0f77b0f385d28cdb3e504e62bd:Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2020-04-02 20:18:25 +0100)
are available in the Git repository at:
https://github.com/stefanha/qemu.git tags/block-pull-request
Quoted 8 lines
for you to fetch changes up to
ae60ab7eb20715fa63cca1b0bb4493e160da51ce:aio-posix: fix test-aio /aio/event/wait with fdmon-io_uring (2020-04-03 12:42:40 +0100)
----------------------------------------------------------------
Pull request----------------------------------------------------------------
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/5.0
for any user-visible changes.
-- PMM