[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 00/10] Refactor bdrv_try_set_aio_context using transaction
From: |
Kevin Wolf |
Subject: |
Re: [PATCH v3 00/10] Refactor bdrv_try_set_aio_context using transactions |
Date: |
Tue, 25 Oct 2022 12:18:11 +0200 |
Am 25.10.2022 um 10:49 hat Emanuele Giuseppe Esposito geschrieben:
> The aim of this series is to reorganize bdrv_try_set_aio_context
> and drop BDS ->set_aio_context and ->can_set_aio_ctx callbacks in
> favour of a new one, ->change_aio_ctx.
>
> More informations in patch 3 (which is also RFC, due to the doubts
> I have with AioContext locks).
>
> Patch 1 just add assertions in the code, 2 extends the transactions API to be
> able to add also transactions in the tail
> of the list.
> Patch 3 is the core of this series, and introduces the new callback.
> It is marked as RFC and the reason is explained in the commit message.
> Patches 4-5-6 implement ->change_aio_ctx in the various block, blockjob
> and block-backend BDSes.
> Patch 7 substitutes ->change_aio_ctx with the old callbacks, and
> patch 8 takes care of deleting the old callbacks and unused code.
>
> This series is based on "job: replace AioContext lock with job_mutex",
> but just because it uses job_set_aio_context() introduced there.
>
> Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
> Based-on: <20220706201533.289775-1-eesposit@redhat.com>
> ---
> v3:
> * add aiocontext lock acquire/remove around bdrv_detach_aio_context
> * typos and nitpicks
> * remove patch 4: bdrv_child_try_change_aio_context: add transaction parameter
Thanks, applied to the block branch.
Kevin
- [PATCH v3 08/10] block: remove all unused ->can_set_aio_ctx and ->set_aio_ctx callbacks, (continued)
- [PATCH v3 08/10] block: remove all unused ->can_set_aio_ctx and ->set_aio_ctx callbacks, Emanuele Giuseppe Esposito, 2022/10/25
- [PATCH v3 07/10] block: use the new _change_ API instead of _can_set_ and _set_, Emanuele Giuseppe Esposito, 2022/10/25
- [PATCH v3 05/10] block: implement .change_aio_ctx in child_of_bds, Emanuele Giuseppe Esposito, 2022/10/25
- [PATCH v3 04/10] blockjob: implement .change_aio_ctx in child_job, Emanuele Giuseppe Esposito, 2022/10/25
- [PATCH v3 03/10] bdrv_change_aio_context: use hash table instead of list of visited nodes, Emanuele Giuseppe Esposito, 2022/10/25
- [PATCH v3 02/10] block: use transactions as a replacement of ->{can_}set_aio_context(), Emanuele Giuseppe Esposito, 2022/10/25
- [PATCH v3 01/10] block.c: assert bs->aio_context is written under BQL and drains, Emanuele Giuseppe Esposito, 2022/10/25
- [PATCH v3 09/10] block: rename bdrv_child_try_change_aio_context in bdrv_try_change_aio_context, Emanuele Giuseppe Esposito, 2022/10/25
- [PATCH v3 06/10] block-backend: implement .change_aio_ctx in child_root, Emanuele Giuseppe Esposito, 2022/10/25
- [PATCH v3 10/10] block: remove bdrv_try_set_aio_context and replace it with bdrv_try_change_aio_context, Emanuele Giuseppe Esposito, 2022/10/25
- Re: [PATCH v3 00/10] Refactor bdrv_try_set_aio_context using transactions,
Kevin Wolf <=