Re: [PATCH for-8.2] export/vhost-user-blk: Fix consecutive drains

2023-11-27 Thread Kevin Wolf
Am 24.11.2023 um 18:44 hat Kevin Wolf geschrieben: > The vhost-user-blk export implement AioContext switches in its drain > implementation. This means that on drain_begin, it detaches the server > from its AioContext and on drain_end, attaches it again and schedules > the server->co_trip coroutine

[PATCH for-8.2] export/vhost-user-blk: Fix consecutive drains

2023-11-24 Thread Kevin Wolf
The vhost-user-blk export implement AioContext switches in its drain implementation. This means that on drain_begin, it detaches the server from its AioContext and on drain_end, attaches it again and schedules the server->co_trip coroutine in the updated AioContext. However, nothing guarantees tha