Merge I/O 2017/07/18
The following changes since commit 9964e96dc9999cf7f7c936ee854a795415d19b60:
Merge remote-tracking branch 'jasowang/tags/net-pull-request' into staging (2017-05-23 15:01:31 +0100)
are available in the git repository at:
git://github.com/berrange/qemu tags/pull-qio-2017-07-18-1
for you to fetch changes up to 8f7168b34323ceec4d5faff797e7bcf1be57e6be:
io: simplify qio_channel_attach_aio_context (2017-05-26 10:38:08 +0100)
----------------------------------------------------------------
Merge I/O 2017/07/18 v1
----------------------------------------------------------------
Paolo Bonzini (1):
io: simplify qio_channel_attach_aio_context
io/channel.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
Signature · 1 line
2.13.0
[Qemu-devel] [PULL v1 1/1] io: simplify qio_channel_attach_aio_context
From: Paolo Bonzini <[email protected]>
If properly preceded by qio_channel_detach_aio_context, this function really has nothing to do except setting ioc->ctx.
--- io/channel.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
io/channel.c +2 -8
@@ -279,15 +279,9 @@ static void qio_channel_set_aio_fd_handlers(QIOChannel *ioc)void qio_channel_attach_aio_context (QIOChannel *ioc,AioContext *ctx) { -AioContext *old_ctx; -if (ioc->ctx == ctx) { -return ; - } - - old_ctx = ioc->ctx ? ioc->ctx :iohandler_get_aio_context (); -qio_channel_set_aio_fd_handler (ioc, old_ctx,NULL ,NULL ,NULL ); +assert (!ioc->read_coroutine); +assert (!ioc->write_coroutine); ioc->ctx = ctx; -qio_channel_set_aio_fd_handlers (ioc); }void qio_channel_detach_aio_context (QIOChannel *ioc)
Signature · 1 line
2.13.0
Peter Maydell
AppliedQuoted 15 lines · Daniel P. Berrange
The following changes since commit
9964e96dc9999cf7f7c936ee854a795415d19b60:Merge remote-tracking branch 'jasowang/tags/net-pull-request' into staging (2017-05-23 15:01:31 +0100)
are available in the git repository at:
git://github.com/berrange/qemutags/pull-qio-2017-07-18-1for you to fetch changes up to
8f7168b34323ceec4d5faff797e7bcf1be57e6be:io: simplify
qio_channel_attach_aio_context(2017-05-26 10:38:08 +0100)----------------------------------------------------------------
Merge I/O 2017/07/18 v1
Quoted 6 lines
----------------------------------------------------------------
Paolo Bonzini (1):
io: simplifyqio_channel_attach_aio_contextio/channel.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
Applied, thanks.
-- PMM