Re: [PATCH v5 2/6] blkdebug: move post-resume handling to resume_req_by_tag

2021-07-15 Thread Max Reitz
On 14.06.21 10:29, Emanuele Giuseppe Esposito wrote: We want to move qemu_coroutine_yield() after the loop on rules, because QLIST_FOREACH_SAFE is wrong if the rule list is modified while the coroutine has yielded. Therefore move the suspended request to the heap and clean it up from the remove

[PATCH v5 2/6] blkdebug: move post-resume handling to resume_req_by_tag

2021-06-14 Thread Emanuele Giuseppe Esposito
We want to move qemu_coroutine_yield() after the loop on rules, because QLIST_FOREACH_SAFE is wrong if the rule list is modified while the coroutine has yielded. Therefore move the suspended request to the heap and clean it up from the remove side. All that is left is for blkdebug_debug_event to