Re: [PATCH v2 4/8] block: make before-write notifiers thread-safe

2021-04-21 Thread Vladimir Sementsov-Ogievskiy
22.04.2021 00:23, Vladimir Sementsov-Ogievskiy wrote: 19.04.2021 11:55, Emanuele Giuseppe Esposito wrote: Reads access the list in RCU style, so be careful to avoid use-after-free scenarios in the backup block job.  Apart from this, all that's needed is protecting updates with a mutex. Note

Re: [PATCH v2 4/8] block: make before-write notifiers thread-safe

2021-04-21 Thread Vladimir Sementsov-Ogievskiy
19.04.2021 11:55, Emanuele Giuseppe Esposito wrote: Reads access the list in RCU style, so be careful to avoid use-after-free scenarios in the backup block job. Apart from this, all that's needed is protecting updates with a mutex. Note that backup doesn't use write-notifiers now. Probably

[PATCH v2 4/8] block: make before-write notifiers thread-safe

2021-04-19 Thread Emanuele Giuseppe Esposito
Reads access the list in RCU style, so be careful to avoid use-after-free scenarios in the backup block job. Apart from this, all that's needed is protecting updates with a mutex. Reviewed-by: Stefan Hajnoczi Signed-off-by: Paolo Bonzini Signed-off-by: Emanuele Giuseppe Esposito --- block.c