|
From: | Hanna Reitz |
Subject: | Re: [PATCH v4 03/25] assertions for block global state API |
Date: | Fri, 12 Nov 2021 12:31:36 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 |
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 <eesposit@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> --- block.c | 136 +++++++++++++++++++++++++++++++++++++++++++++++-- block/commit.c | 2 + block/io.c | 20 ++++++++ blockdev.c | 1 + 4 files changed, 156 insertions(+), 3 deletions(-)
bdrv_make_zero() seems missing here – it can be considered an I/O or a GS function, but patch 2 classified it as GS.
Hanna
[Prev in Thread] | Current Thread | [Next in Thread] |