Emanuele Giuseppe Esposito 587d82fae2 async: Register/unregister aiocontext in graph lock list
Add/remove the AioContext in aio_context_list in graph-lock.c when it is
created/destroyed. This allows using the graph locking operations from
this AioContext.

In order to allow linking util/async.c with binaries that don't include
the block layer, introduce stubs for (un)register_aiocontext().

Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20221207131838.239125-5-kwolf@redhat.com>
Reviewed-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2022-12-15 16:07:43 +01:00
..
2020-01-06 18:41:32 +04:00
2022-04-21 17:03:51 +04:00
2019-09-11 08:46:17 +02:00
2020-12-10 17:16:44 +01:00
2022-06-29 10:56:12 +03:00
2022-03-04 18:14:40 +01:00
2021-07-09 18:20:27 +02:00
2021-04-01 15:27:44 +04:00