On 30.10.25 15:12, Kevin Wolf wrote:
Am 28.10.2025 um 17:33 hat Hanna Czenczek geschrieben:
AIO callbacks must be called in the originally calling AioContext,
regardless of the BDS’s “main” AioContext.

Note: I tried to test this (under wine), but failed.  Whenever I tried
to use multiqueue or even just an I/O thread for a virtio-blk (or
virtio-scsi) device, I/O stalled, both with and without this patch.

For what it’s worth, when not using an I/O thread, I/O continued to work
with this patch.

Signed-off-by: Hanna Czenczek <[email protected]>
Should we then do the opposite thing and just move every request into
the main thread and only move back before returning to the caller?

Maybe it would be fairer to fail requests when they’re not in BDS context?

But I'm also not against making the theoretical fix so that maybe
someone can fix the other problem later. It just seems to be of somewhat
limited use on its own.

True.  But as explained in patch 13, these last few patches are not really that useful in practice anyway…

Hanna


Reply via email to