qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v6 06/33] block/block-backend.c: assertions for block-backend


From: Hanna Reitz
Subject: Re: [PATCH v6 06/33] block/block-backend.c: assertions for block-backend
Date: Wed, 26 Jan 2022 10:02:33 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0

On 21.01.22 18:05, 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>
---
  block/block-backend.c  | 79 ++++++++++++++++++++++++++++++++++++++++++
  softmmu/qdev-monitor.c |  2 ++
  2 files changed, 81 insertions(+)

diff --git a/block/block-backend.c b/block/block-backend.c
index 6f91dcc85d..6c80ae54cc 100644
--- a/block/block-backend.c
+++ b/block/block-backend.c

[...]

@@ -1908,6 +1958,7 @@ void blk_lock_medium(BlockBackend *blk, bool locked)
  void blk_eject(BlockBackend *blk, bool eject_flag)
  {
      BlockDriverState *bs = blk_bs(blk);
+
      char *id;
if (bs) {

Left over hunk from when when there was an assertion added here, should be dropped, I believe.

Hanna




reply via email to

[Prev in Thread] Current Thread [Next in Thread]