Re: [PATCH v2 for-7.1 0/9] nbd: actually make s->state thread-safe

2022-04-22 Thread Eric Blake
On Sat, Apr 16, 2022 at 07:03:57PM +, Lukas Straub wrote: > On Thu, 14 Apr 2022 19:57:47 +0200 > Paolo Bonzini wrote: > > > The main point of this series is patch 7, which removes the dubious and > > probably wrong use of atomics in block/nbd.c. This in turn is enabled > > mostly by the clea

Re: [PATCH v2 for-7.1 0/9] nbd: actually make s->state thread-safe

2022-04-16 Thread Lukas Straub
On Thu, 14 Apr 2022 19:57:47 +0200 Paolo Bonzini wrote: > The main point of this series is patch 7, which removes the dubious and > probably wrong use of atomics in block/nbd.c. This in turn is enabled > mostly by the cleanups in patches 3-5. Together, they introduce a > QemuMutex that synchron

[PATCH v2 for-7.1 0/9] nbd: actually make s->state thread-safe

2022-04-14 Thread Paolo Bonzini
The main point of this series is patch 7, which removes the dubious and probably wrong use of atomics in block/nbd.c. This in turn is enabled mostly by the cleanups in patches 3-5. Together, they introduce a QemuMutex that synchronizes the NBD client coroutines, the reconnect_delay timer and nbd_