export.c (40d522490714b65e0856444277db6c14c5cc3796) export.c (142e6907120d12de1e7ac402e556597ebbab86e8)
1/*
2 * Common block export infrastructure
3 *
4 * Copyright (c) 2012, 2020 Red Hat, Inc.
5 *
6 * Authors:
7 * Paolo Bonzini <pbonzini@redhat.com>
8 * Kevin Wolf <kwolf@redhat.com>

--- 115 unchanged lines hidden (view full) ---

124 error_setg(errp, "iothread \"%s\" not found", export->iothread);
125 goto fail;
126 }
127
128 new_ctx = iothread_get_aio_context(iothread);
129
130 /* Ignore errors with fixed-iothread=false */
131 set_context_errp = fixed_iothread ? errp : NULL;
1/*
2 * Common block export infrastructure
3 *
4 * Copyright (c) 2012, 2020 Red Hat, Inc.
5 *
6 * Authors:
7 * Paolo Bonzini <pbonzini@redhat.com>
8 * Kevin Wolf <kwolf@redhat.com>

--- 115 unchanged lines hidden (view full) ---

124 error_setg(errp, "iothread \"%s\" not found", export->iothread);
125 goto fail;
126 }
127
128 new_ctx = iothread_get_aio_context(iothread);
129
130 /* Ignore errors with fixed-iothread=false */
131 set_context_errp = fixed_iothread ? errp : NULL;
132 ret = bdrv_try_set_aio_context(bs, new_ctx, set_context_errp);
132 ret = bdrv_try_change_aio_context(bs, new_ctx, NULL, set_context_errp);
133 if (ret == 0) {
134 aio_context_release(ctx);
135 aio_context_acquire(new_ctx);
136 ctx = new_ctx;
137 } else if (fixed_iothread) {
138 goto fail;
139 }
140 }

--- 230 unchanged lines hidden ---
133 if (ret == 0) {
134 aio_context_release(ctx);
135 aio_context_acquire(new_ctx);
136 ctx = new_ctx;
137 } else if (fixed_iothread) {
138 goto fail;
139 }
140 }

--- 230 unchanged lines hidden ---