On 6/2/25 17:53, Kevin Wolf wrote:
Commit fc4e394b28 removed the last caller of blk_op_is_blocked(). Remove
the now unused function.

fatal: ambiguous argument 'fc4e394b28': unknown revision or path not in the working tree.

Is there a patch on the list?


Signed-off-by: Kevin Wolf <kw...@redhat.com>
---
  include/system/block-backend-global-state.h |  1 -
  block/block-backend.c                       | 12 ------------
  2 files changed, 13 deletions(-)

diff --git a/include/system/block-backend-global-state.h 
b/include/system/block-backend-global-state.h
index 9cc9b008ec..35b5e8380b 100644
--- a/include/system/block-backend-global-state.h
+++ b/include/system/block-backend-global-state.h
@@ -86,7 +86,6 @@ bool blk_supports_write_perm(BlockBackend *blk);
  bool blk_is_sg(BlockBackend *blk);
  void blk_set_enable_write_cache(BlockBackend *blk, bool wce);
  int blk_get_flags(BlockBackend *blk);
-bool blk_op_is_blocked(BlockBackend *blk, BlockOpType op, Error **errp);
  int blk_set_aio_context(BlockBackend *blk, AioContext *new_context,
                          Error **errp);
  void blk_add_aio_context_notifier(BlockBackend *blk,
diff --git a/block/block-backend.c b/block/block-backend.c
index 9288f7e1c6..a402db13f2 100644
--- a/block/block-backend.c
+++ b/block/block-backend.c
@@ -2357,18 +2357,6 @@ void *blk_blockalign(BlockBackend *blk, size_t size)
      return qemu_blockalign(blk ? blk_bs(blk) : NULL, size);
  }
-bool blk_op_is_blocked(BlockBackend *blk, BlockOpType op, Error **errp)
-{
-    BlockDriverState *bs = blk_bs(blk);
-    GLOBAL_STATE_CODE();
-    GRAPH_RDLOCK_GUARD_MAINLOOP();
-
-    if (!bs) {
-        return false;
-    }
-
-    return bdrv_op_is_blocked(bs, op, errp);
-}
/**
   * Return BB's current AioContext.  Note that this context may change


Reply via email to