[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [Qemu-block] question: I found a qemu crash when attac
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [Qemu-block] question: I found a qemu crash when attach virtio-scsi disk |
Date: |
Thu, 9 Nov 2017 12:43:23 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
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
Message not available