block-backend.c (33949396216fa16a97f5b33877b50d5830f21aad) | block-backend.c (f8be48adf08641f43dfb34b6abf50f9bc21fc250) |
---|---|
1/* 2 * QEMU Block backends 3 * 4 * Copyright (C) 2014-2016 Red Hat, Inc. 5 * 6 * Authors: 7 * Markus Armbruster <armbru@redhat.com>, 8 * --- 2139 unchanged lines hidden (view full) --- 2148 BlockDriverState *bs = blk_bs(blk); 2149 ThrottleGroupMember *tgm = &blk->public.throttle_group_member; 2150 int ret; 2151 2152 if (bs) { 2153 bdrv_ref(bs); 2154 2155 if (update_root_node) { | 1/* 2 * QEMU Block backends 3 * 4 * Copyright (C) 2014-2016 Red Hat, Inc. 5 * 6 * Authors: 7 * Markus Armbruster <armbru@redhat.com>, 8 * --- 2139 unchanged lines hidden (view full) --- 2148 BlockDriverState *bs = blk_bs(blk); 2149 ThrottleGroupMember *tgm = &blk->public.throttle_group_member; 2150 int ret; 2151 2152 if (bs) { 2153 bdrv_ref(bs); 2154 2155 if (update_root_node) { |
2156 ret = bdrv_child_try_set_aio_context(bs, new_context, blk->root, 2157 errp); | 2156 /* 2157 * update_root_node MUST be false for blk_root_set_aio_ctx_commit(), 2158 * as we are already in the commit function of a transaction. 2159 */ 2160 ret = bdrv_child_try_change_aio_context(bs, new_context, blk->root, 2161 errp); |
2158 if (ret < 0) { 2159 bdrv_unref(bs); 2160 return ret; 2161 } 2162 } 2163 if (tgm->throttle_state) { 2164 bdrv_drained_begin(bs); 2165 throttle_group_detach_aio_context(tgm); --- 483 unchanged lines hidden --- | 2162 if (ret < 0) { 2163 bdrv_unref(bs); 2164 return ret; 2165 } 2166 } 2167 if (tgm->throttle_state) { 2168 bdrv_drained_begin(bs); 2169 throttle_group_detach_aio_context(tgm); --- 483 unchanged lines hidden --- |