diff options
| author | Roman Kagan <rvkagan@yandex-team.ru> | 2021-06-10 13:07:37 +0300 |
|---|---|---|
| committer | Eric Blake <eblake@redhat.com> | 2021-06-18 10:59:53 -0500 |
| commit | e8b35bf5dc8d4e98d91855a9c7b2ed905c8e6888 (patch) | |
| tree | bb992ae52e0197a78d052b42524119a6bc59c247 /scripts/block-coroutine-wrapper.py | |
| parent | 6cc702beac795a6de7b5f97700b140dcd9936055 (diff) | |
| download | focaccia-qemu-e8b35bf5dc8d4e98d91855a9c7b2ed905c8e6888.tar.gz focaccia-qemu-e8b35bf5dc8d4e98d91855a9c7b2ed905c8e6888.zip | |
block/nbd: ensure ->connection_thread is always valid
Simplify lifetime management of BDRVNBDState->connect_thread by delaying the possible cleanup of it until the BDRVNBDState itself goes away. This also reverts 0267101af6 "block/nbd: fix possible use after free of s->connect_thread" as now s->connect_thread can't be cleared until the very end. Signed-off-by: Roman Kagan <rvkagan@yandex-team.ru> [vsementsov: rebase, revert 0267101af6 changes] Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> [eblake: tweak comment] Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20210610100802.5888-8-vsementsov@virtuozzo.com> Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'scripts/block-coroutine-wrapper.py')
0 files changed, 0 insertions, 0 deletions