On 09/11/2017 12:33, Stefan Hajnoczi wrote: >>> Can main thread somehow call aio_context_acquire(vs->ctx) (and release) >>> around >>> qdev_set_parent_bus()? virtio_scsi_device_find() takes the lock. >> No, the context is not set yet. But the locking is easy to add, >> separately from the bug that Zhengui is reporting. > Do you want to submit a patch for this instead of the > aio_disable_external() approach I posted? I think your idea is cleaner > than modifying the geometry probing function.
Yes, I will. Both the locking and the "online" status. Paolo
signature.asc
Description: OpenPGP digital signature