diff mbox series

[1/2] vhost-user-blk-server: adjust vhost_user_server_set_aio_context() arguments

Message ID 20200619120332.2422664-1-stefanha@redhat.com
State New
Headers show
Series [1/2] vhost-user-blk-server: adjust vhost_user_server_set_aio_context() arguments | expand

Commit Message

Stefan Hajnoczi June 19, 2020, 12:03 p.m. UTC
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(-)
diff mbox series

Patch

diff --git a/block/export/vhost-user-blk-server.c b/block/export/vhost-user-blk-server.c
index bbf2ceaa9b..bed3c43737 100644
--- a/block/export/vhost-user-blk-server.c
+++ b/block/export/vhost-user-blk-server.c
@@ -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);
 }