On 5/7/21 10:12 AM, Emanuele Giuseppe Esposito wrote: > That would be unsafe in case a rule other than the current one > is removed while the coroutine has yielded. > Keep FOREACH_SAFE because suspend_request deletes the current rule. > > After this patch, *all* matching rules are deleted before suspending > the coroutine, rather than just one. > This doesn't affect the existing testcases. > > Use actions_count to see how many yeld to issue.
yield > > Co-developed-by: Paolo Bonzini <[email protected]> > Signed-off-by: Emanuele Giuseppe Esposito <[email protected]> > --- > block/blkdebug.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org
