Re: [RFC 07/11] aio: add errp argument to aio_context_setup()

2025-05-28 Thread Eric Blake
On Wed, May 28, 2025 at 03:09:12PM -0400, Stefan Hajnoczi wrote: > When aio_context_new() -> aio_context_setup() fails at startup it > doesn't really matter whether errors are returned to the caller or the > process terminates immediately. > > However, it is not acceptable to terminate when hotplu

[RFC 07/11] aio: add errp argument to aio_context_setup()

2025-05-28 Thread Stefan Hajnoczi
When aio_context_new() -> aio_context_setup() fails at startup it doesn't really matter whether errors are returned to the caller or the process terminates immediately. However, it is not acceptable to terminate when hotplugging --object iothread at runtime. Refactor aio_context_setup() so that er