Il 30/03/2012 10:31, Paolo Bonzini ha scritto: > However, even this is not enough. It fixes a race with closing, but not > with deleting bs. So the bug does not show anymore when you quit QEMU > (because the coroutine is not restarted), but it is still there if you > hot-unplug a device while streaming is in effect.
Nevermind, hot-unplug is handled by the reference counting mechanism; so this patch is enough. However, we may still want to cancel the job when a device is hot-unplugged. I'll resubmit this patch as a series and with a better commit message. Paolo