@@ -352,7 +352,7 @@ static void blk_aio_attached(AioContext *ctx, void *opaque)
{
VuBlockDev *vub_dev = opaque;
aio_context_acquire(ctx);
- vhost_user_server_set_aio_context(ctx, &vub_dev->vu_server);
+ vhost_user_server_set_aio_context(&vub_dev->vu_server, ctx);
aio_context_release(ctx);
}
@@ -361,7 +361,7 @@ static void blk_aio_detach(void *opaque)
VuBlockDev *vub_dev = opaque;
AioContext *ctx = vub_dev->vu_server.ctx;
aio_context_acquire(ctx);
- vhost_user_server_set_aio_context(NULL, &vub_dev->vu_server);
+ vhost_user_server_set_aio_context(&vub_dev->vu_server, NULL);
aio_context_release(ctx);
}
The function arguments were reordered in a previous patch. Use the new ordering. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> --- block/export/vhost-user-blk-server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)