On Tue, Feb 08, 2022 at 09:35:04AM -0500, Emanuele Giuseppe Esposito wrote: > Once job lock is used and aiocontext is removed, mirror has > to perform job operations under the same critical section, > using the helpers prepared in previous commit. > > Note: at this stage, job_{lock/unlock} and job lock guard macros > are *nop*. > > Signed-off-by: Emanuele Giuseppe Esposito <eespo...@redhat.com> > --- > block/mirror.c | 19 ++++++++++++++----- > 1 file changed, 14 insertions(+), 5 deletions(-)
My understanding is that MirrorBlockJob itself does need a lock because it's only access from the coroutines - and they run in only one thread. Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
signature.asc
Description: PGP signature