Re: [Libguestfs] [PATCH libnbd 6/8] copy: Keep worker pointer in command

2022-02-21 Thread Eric Blake
On Sun, Feb 20, 2022 at 02:14:01PM +0200, Nir Soffer wrote: > Replace the command index with a worker pointer. The nbd-ops access the > index via the worker pointer. This allows commands to modify worker > state during processing. > > Signed-off-by: Nir Soffer > --- > copy/multi-thread-copying.c

[Libguestfs] [PATCH libnbd 6/8] copy: Keep worker pointer in command

2022-02-20 Thread Nir Soffer
Replace the command index with a worker pointer. The nbd-ops access the index via the worker pointer. This allows commands to modify worker state during processing. Signed-off-by: Nir Soffer --- copy/multi-thread-copying.c | 12 ++-- copy/nbd-ops.c | 6 +++--- copy/nbdcopy.