Re: [PATCH v4 05/25] block/block-backend.c: assertions for block-backend

2021-11-16 Thread Hanna Reitz
On 16.11.21 11:15, Emanuele Giuseppe Esposito wrote: On 12/11/2021 12:01, Hanna Reitz wrote: On 25.10.21 12:17, Emanuele Giuseppe Esposito wrote: All the global state (GS) API functions will check that qemu_in_main_thread() returns true. If not, it means that the safety of BQL cannot be guara

Re: [PATCH v4 05/25] block/block-backend.c: assertions for block-backend

2021-11-16 Thread Emanuele Giuseppe Esposito
On 12/11/2021 12:01, Hanna Reitz wrote: On 25.10.21 12:17, Emanuele Giuseppe Esposito wrote: All the global state (GS) API functions will check that qemu_in_main_thread() returns true. If not, it means that the safety of BQL cannot be guaranteed, and they need to be moved to I/O. Signed-off-

Re: [PATCH v4 05/25] block/block-backend.c: assertions for block-backend

2021-11-12 Thread Hanna Reitz
On 25.10.21 12:17, Emanuele Giuseppe Esposito wrote: All the global state (GS) API functions will check that qemu_in_main_thread() returns true. If not, it means that the safety of BQL cannot be guaranteed, and they need to be moved to I/O. Signed-off-by: Emanuele Giuseppe Esposito Reviewed-by:

[PATCH v4 05/25] block/block-backend.c: assertions for block-backend

2021-10-25 Thread Emanuele Giuseppe Esposito
All the global state (GS) API functions will check that qemu_in_main_thread() returns true. If not, it means that the safety of BQL cannot be guaranteed, and they need to be moved to I/O. Signed-off-by: Emanuele Giuseppe Esposito Reviewed-by: Stefan Hajnoczi --- block/block-backend.c | 90