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

2022-04-13 Thread Paolo Bonzini
On 4/12/22 20:26, Vladimir Sementsov-Ogievskiy wrote: 12.04.2022 20:32, Paolo Bonzini wrote: The main point of this series is patch 6, 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 intro

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

2022-04-12 Thread Paolo Bonzini
The main point of this series is patch 6, 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_

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

2022-04-12 Thread Vladimir Sementsov-Ogievskiy
12.04.2022 20:32, Paolo Bonzini wrote: The main point of this series is patch 6, 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 corou

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

2022-04-12 Thread Paolo Bonzini
The main point of this series is patch 6, 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_