Message ID | cover.1547132561.git.berto@igalia.com (mailing list archive) |
---|---|
Headers | show |
Series | Acquire the AioContext during _realize() | expand |
For what it's worth, this series seems to fix assertion failures related to AioContext acquire/release I've seen.
Am 10.01.2019 um 16:03 hat Alberto Garcia geschrieben: > As discussed yesterday, this series acquires the AioContext in the > _realize() functions of several devices before making use of their > block backends. This fixes at least a couple of crashes (in virtio-blk > and scsi). Apart from the incomplete scsi-block fix, this looks good. Of course, I think patches 3-6 are completely optional because none of these devices actually support iothreads, so we can't hit a bug. But it might be nicer to add it there as well anyway. For patches 1 and 2, which actually fix bugs, it would be nice to have an accompanying test case. Kevin
On Fri 11 Jan 2019 04:09:17 PM CET, Kevin Wolf wrote: > Am 10.01.2019 um 16:03 hat Alberto Garcia geschrieben: >> As discussed yesterday, this series acquires the AioContext in the >> _realize() functions of several devices before making use of their >> block backends. This fixes at least a couple of crashes (in virtio-blk >> and scsi). > > Apart from the incomplete scsi-block fix, this looks good. Of course, > I think patches 3-6 are completely optional because none of these > devices actually support iothreads, so we can't hit a bug. But it > might be nicer to add it there as well anyway. > > For patches 1 and 2, which actually fix bugs, it would be nice to have > an accompanying test case. Ok, I'll prepare v2 with your suggestions. Berto