blockdev.c (2842ff2d81ddd86b1d0dd3b98c46b72bfa5cb4cb) | blockdev.c (6cf42ca2f9782f0335abf3e6b611fbced40cd099) |
---|---|
1/* 2 * QEMU host block devices 3 * 4 * Copyright (c) 2003-2008 Fabrice Bellard 5 * 6 * This work is licensed under the terms of the GNU GPL, version 2 or 7 * later. See the COPYING file in the top-level directory. 8 * --- 3578 unchanged lines hidden (view full) --- 3587 qdict = qobject_to(QDict, obj); 3588 3589 qdict_flatten(qdict); 3590 3591 /* Perform the reopen operation */ 3592 ctx = bdrv_get_aio_context(bs); 3593 aio_context_acquire(ctx); 3594 bdrv_subtree_drained_begin(bs); | 1/* 2 * QEMU host block devices 3 * 4 * Copyright (c) 2003-2008 Fabrice Bellard 5 * 6 * This work is licensed under the terms of the GNU GPL, version 2 or 7 * later. See the COPYING file in the top-level directory. 8 * --- 3578 unchanged lines hidden (view full) --- 3587 qdict = qobject_to(QDict, obj); 3588 3589 qdict_flatten(qdict); 3590 3591 /* Perform the reopen operation */ 3592 ctx = bdrv_get_aio_context(bs); 3593 aio_context_acquire(ctx); 3594 bdrv_subtree_drained_begin(bs); |
3595 aio_context_release(ctx); 3596 |
|
3595 queue = bdrv_reopen_queue(NULL, bs, qdict, false); 3596 bdrv_reopen_multiple(queue, errp); | 3597 queue = bdrv_reopen_queue(NULL, bs, qdict, false); 3598 bdrv_reopen_multiple(queue, errp); |
3599 3600 ctx = bdrv_get_aio_context(bs); 3601 aio_context_acquire(ctx); |
|
3597 bdrv_subtree_drained_end(bs); 3598 aio_context_release(ctx); 3599 3600fail: 3601 visit_free(v); 3602} 3603 3604void qmp_blockdev_del(const char *node_name, Error **errp) --- 235 unchanged lines hidden --- | 3602 bdrv_subtree_drained_end(bs); 3603 aio_context_release(ctx); 3604 3605fail: 3606 visit_free(v); 3607} 3608 3609void qmp_blockdev_del(const char *node_name, Error **errp) --- 235 unchanged lines hidden --- |