block: Remove unused blk_op_is_blocked()
PATCH 1/1 block: Remove unused blk_op_is_blocked()
Commit fc4e394b28 removed the last caller of blk_op_is_blocked(). Remove the now unused function.
--- include/system/block-backend-global-state.h | 1 - block/block-backend.c | 12 ------------ 2 files changed, 13 deletions(-)
include/system/block-backend-global-state.h +0 -1
@@ -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,
block/block-backend.c +0 -12
@@ -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
Signature · 1 line
2.48.1
Quoted 2 lines · Kevin Wolf
Commit
fc4e394b28removed the last caller ofblk_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?
Quoted 42 lines
Signed-off-by Kevin Wolf <[email protected]>--- include/system/block-backend-global-state.h | 1 - block/block-backend.c | 12 ------------ 2 files changed, 13 deletions(-)include/system/block-backend-global-state.h +0
-1@@ -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,block/block-backend.c +0
-12@@ -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
Am 06.02.2025 um 18:25 hat Philippe Mathieu-Daudé geschrieben:
Quoted 8 lines · Kevin Wolf
Quoted 2 lines
Commit
fc4e394b28removed the last caller ofblk_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?
It's in my pending pull request (which I hope to go through - otherwise I'll have to update the commit ID here). This is the patch:
https://patchew.org/QEMU/[email protected]/
Kevin
Philippe Mathieu-Daudé
Reviewed-byQuoted 8 lines · Kevin Wolf
Am 06.02.2025 um 18:25 hat Philippe Mathieu-Daudé geschrieben:
Quoted 7 lines · Kevin Wolf
Quoted 2 lines
Commit
fc4e394b28removed the last caller ofblk_op_is_blocked(). Remove the now unused function.fatal: ambiguous argument '
fc4e394b28': unknown revision or path not in the working tree.
Quoted 6 lines
Quoted 1 line
Is there a patch on the list?
It's in my pending pull request (which I hope to go through - otherwise I'll have to update the commit ID here). This is the patch:
OK! Then:
Quoted 8 lines · Kevin Wolf
Commit
fc4e394b28removed the last caller ofblk_op_is_blocked(). Remove the now unused function.Signed-off-by Kevin Wolf <[email protected]>--- include/system/block-backend-global-state.h | 1 - block/block-backend.c | 12 ------------ 2 files changed, 13 deletions(-)
Nice! This can be merged after my patch that removes BLOCK_OP_TYPE_DATAPLANE.