Re: [RFC PATCH v2 4/8] async: register/unregister aiocontext in graph lock list

2022-04-29 Thread Emanuele Giuseppe Esposito
Am 29/04/2022 um 00:19 schrieb Paolo Bonzini: > On 4/28/22 15:46, Stefan Hajnoczi wrote: >>>     if have_block >>>     util_ss.add(files('aiocb.c', 'async.c', 'aio-wait.c')) >>> +  util_ss.add(files('../block/graph-lock.c')) >> Why is it in block/ if it needs to be built into libqemuutil? >

Re: [RFC PATCH v2 4/8] async: register/unregister aiocontext in graph lock list

2022-04-28 Thread Paolo Bonzini
On 4/28/22 15:46, Stefan Hajnoczi wrote: if have_block util_ss.add(files('aiocb.c', 'async.c', 'aio-wait.c')) + util_ss.add(files('../block/graph-lock.c')) Why is it in block/ if it needs to be built into libqemuutil? Maybe register_aiocontext, unregister_aiocontext and

Re: [RFC PATCH v2 4/8] async: register/unregister aiocontext in graph lock list

2022-04-28 Thread Stefan Hajnoczi
On Tue, Apr 26, 2022 at 04:51:10AM -0400, Emanuele Giuseppe Esposito wrote: > diff --git a/util/meson.build b/util/meson.build > index 3736988b9f..c85d8695de 100644 > --- a/util/meson.build > +++ b/util/meson.build > @@ -64,6 +64,7 @@ endif > > if have_block >util_ss.add(files('aiocb.c',

[RFC PATCH v2 4/8] async: register/unregister aiocontext in graph lock list

2022-04-26 Thread Emanuele Giuseppe Esposito
Add/remove the AioContext in aio_context_list in graph-lock.c only when it is being effectively created/destroyed. Signed-off-by: Emanuele Giuseppe Esposito --- util/async.c | 4 util/meson.build | 1 + 2 files changed, 5 insertions(+) diff --git a/util/async.c b/util/async.c index