diff options
author | Stefan Hajnoczi | 2020-09-29 14:55:16 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2020-10-23 14:42:16 +0200 |
commit | f51d23c80af73c95e0ce703ad06a300f1b3d63ef (patch) | |
tree | ac9a127ade1fd1b5ca75ffb52ef825cff5a69ba6 /nbd | |
parent | block: move block exports to libblockdev (diff) | |
download | qemu-f51d23c80af73c95e0ce703ad06a300f1b3d63ef.tar.gz qemu-f51d23c80af73c95e0ce703ad06a300f1b3d63ef.tar.xz qemu-f51d23c80af73c95e0ce703ad06a300f1b3d63ef.zip |
block/export: add iothread and fixed-iothread options
Make it possible to specify the iothread where the export will run. By
default the block node can be moved to other AioContexts later and the
export will follow. The fixed-iothread option forces strict behavior
that prevents changing AioContext while the export is active. See the
QAPI docs for details.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20200929125516.186715-5-stefanha@redhat.com
[Fix stray '#' character in block-export.json and add missing "(since:
5.2)" as suggested by Eric Blake.
--Stefan]
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'nbd')
-rw-r--r-- | nbd/server.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/nbd/server.c b/nbd/server.c index e75c825879..08b621f70a 100644 --- a/nbd/server.c +++ b/nbd/server.c @@ -1517,8 +1517,6 @@ static int nbd_export_create(BlockExport *blk_exp, BlockExportOptions *exp_args, return ret; } - blk_set_allow_aio_context_change(blk, true); - QTAILQ_INIT(&exp->clients); exp->name = g_strdup(arg->name); exp->description = g_strdup(arg->description); |