block: Remove the AioContext parameter from bdrv_reopen_multiple()

This parameter has been unused since 1a63a90750

Signed-off-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
Alberto Garcia 2019-03-12 18:48:50 +02:00 committed by Kevin Wolf
parent faf116b438
commit 5019aece2a
4 changed files with 5 additions and 6 deletions

View file

@ -3254,7 +3254,7 @@ BlockReopenQueue *bdrv_reopen_queue(BlockReopenQueue *bs_queue,
* All affected nodes must be drained between bdrv_reopen_queue() and * All affected nodes must be drained between bdrv_reopen_queue() and
* bdrv_reopen_multiple(). * bdrv_reopen_multiple().
*/ */
int bdrv_reopen_multiple(AioContext *ctx, BlockReopenQueue *bs_queue, Error **errp) int bdrv_reopen_multiple(BlockReopenQueue *bs_queue, Error **errp)
{ {
int ret = -1; int ret = -1;
BlockReopenQueueEntry *bs_entry, *next; BlockReopenQueueEntry *bs_entry, *next;
@ -3347,7 +3347,7 @@ int bdrv_reopen_set_read_only(BlockDriverState *bs, bool read_only,
bdrv_subtree_drained_begin(bs); bdrv_subtree_drained_begin(bs);
queue = bdrv_reopen_queue(NULL, bs, opts, true); queue = bdrv_reopen_queue(NULL, bs, opts, true);
ret = bdrv_reopen_multiple(bdrv_get_aio_context(bs), queue, errp); ret = bdrv_reopen_multiple(queue, errp);
bdrv_subtree_drained_end(bs); bdrv_subtree_drained_end(bs);
return ret; return ret;

View file

@ -385,8 +385,7 @@ static void reopen_backing_file(BlockDriverState *bs, bool writable,
} }
if (reopen_queue) { if (reopen_queue) {
bdrv_reopen_multiple(bdrv_get_aio_context(bs), bdrv_reopen_multiple(reopen_queue, &local_err);
reopen_queue, &local_err);
error_propagate(errp, local_err); error_propagate(errp, local_err);
} }

View file

@ -304,7 +304,7 @@ BlockDriverState *bdrv_new_open_driver(BlockDriver *drv, const char *node_name,
BlockReopenQueue *bdrv_reopen_queue(BlockReopenQueue *bs_queue, BlockReopenQueue *bdrv_reopen_queue(BlockReopenQueue *bs_queue,
BlockDriverState *bs, QDict *options, BlockDriverState *bs, QDict *options,
bool keep_old_opts); bool keep_old_opts);
int bdrv_reopen_multiple(AioContext *ctx, BlockReopenQueue *bs_queue, Error **errp); int bdrv_reopen_multiple(BlockReopenQueue *bs_queue, Error **errp);
int bdrv_reopen_set_read_only(BlockDriverState *bs, bool read_only, int bdrv_reopen_set_read_only(BlockDriverState *bs, bool read_only,
Error **errp); Error **errp);
int bdrv_reopen_prepare(BDRVReopenState *reopen_state, int bdrv_reopen_prepare(BDRVReopenState *reopen_state,

View file

@ -2081,7 +2081,7 @@ static int reopen_f(BlockBackend *blk, int argc, char **argv)
bdrv_subtree_drained_begin(bs); bdrv_subtree_drained_begin(bs);
brq = bdrv_reopen_queue(NULL, bs, opts, true); brq = bdrv_reopen_queue(NULL, bs, opts, true);
bdrv_reopen_multiple(bdrv_get_aio_context(bs), brq, &local_err); bdrv_reopen_multiple(brq, &local_err);
bdrv_subtree_drained_end(bs); bdrv_subtree_drained_end(bs);
if (local_err) { if (local_err) {