[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/2] vhost-user-blk-server: adjust vhost_user_server_set_aio_cont
From: |
Stefan Hajnoczi |
Subject: |
[PATCH 1/2] vhost-user-blk-server: adjust vhost_user_server_set_aio_context() arguments |
Date: |
Fri, 19 Jun 2020 13:03:31 +0100 |
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 --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);
}
--
2.26.2
- [PATCH v9 3/5] move logical block size check function to a common utility function, (continued)
- [PATCH v9 3/5] move logical block size check function to a common utility function, Coiby Xu, 2020/06/14
- Re: [PATCH v9 3/5] move logical block size check function to a common utility function, Kevin Wolf, 2020/06/18
- [PATCH 1/6] block-helpers: move MIN/MAX_BLOCK_SIZE constants into header file, Stefan Hajnoczi, 2020/06/19
- [PATCH 2/6] block-helpers: switch to int64_t block size values, Stefan Hajnoczi, 2020/06/19
- [PATCH 3/6] block-helpers: rename check_logical_block_size() to check_block_size(), Stefan Hajnoczi, 2020/06/19
- [PATCH 4/6] block-helpers: use local_err in case errp is NULL, Stefan Hajnoczi, 2020/06/19
- [PATCH 5/6] block-helpers: keep the copyright line from the original file, Stefan Hajnoczi, 2020/06/19
- [PATCH 6/6] block-helpers: update doc comment in gtkdoc style, Stefan Hajnoczi, 2020/06/19
- [PATCH v9 4/5] vhost-user block device backend server, Coiby Xu, 2020/06/14
- [PATCH v9 5/5] new qTest case to test the vhost-user-blk-server, Coiby Xu, 2020/06/14
- Re: [PATCH v9 5/5] new qTest case to test the vhost-user-blk-server, Thomas Huth, 2020/06/24
- Re: [PATCH v9 0/5] vhost-user block device backend implementation, no-reply, 2020/06/14
- Re: [PATCH v9 0/5] vhost-user block device backend implementation, no-reply, 2020/06/14