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

2023-11-27 Thread Stefan Hajnoczi
On Mon, 27 Nov 2023 at 06:58, Kevin Wolf wrote: > > 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 v2] export/vhost-user-blk: Fix consecutive drains

2023-11-27 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