[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 0/6] block-copy: make helper APIs thread safe
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH 0/6] block-copy: make helper APIs thread safe |
Date: |
Wed, 12 May 2021 15:24:56 +0100 |
On Mon, May 10, 2021 at 10:59:35AM +0200, Emanuele Giuseppe Esposito wrote:
> This serie of patches bring thread safety to the smaller APIs used by
> block-copy, namely ratelimit, progressmeter, co-shared-resource
> and aiotask.
> The end goal is to reduce the usage of the global
> AioContexlock in block-copy, by introducing smaller granularity
> locks thus on making the block layer thread safe.
I'm not sure "global" is accurate. Block jobs can deal with arbitrary
AioContexts, not just a global AioContext. The lock is per-AioContext
rather than global. Or did I miss something?
signature.asc
Description: PGP signature
[PATCH 2/6] block-copy: let ratelimit handle a speed of 0, Emanuele Giuseppe Esposito, 2021/05/10
[PATCH 6/6] aiopool: protect with a mutex, Emanuele Giuseppe Esposito, 2021/05/10
Re: [PATCH 0/6] block-copy: make helper APIs thread safe, Vladimir Sementsov-Ogievskiy, 2021/05/10
Re: [PATCH 0/6] block-copy: make helper APIs thread safe,
Stefan Hajnoczi <=