Skip to contentSkip to conversation

qed: remove spurious BDRV_POLL_WHILE()

PATCH Applied Stefan Hajnoczi 2 participants 2 messages Mar 9, 2023 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qed: remove spurious BDRV_POLL_WHILE()

This looks like a copy-paste or merge error. BDRV_POLL_WHILE() is already called above. It's not needed in the qemu_in_coroutine() case.

Fixes 9fb4dfc570ce ("qed: make bdrv_qed_do_open a coroutine_fn")
---
 block/qed.c | 1 -
 1 file changed, 1 deletion(-)
block/qed.c +0 -1
index ed94bb61ca..0705a7b4e2 100644
@@ -594,7 +594,6 @@ static int bdrv_qed_open(BlockDriverState *bs, QDict *options, int flags,
         qemu_coroutine_enter(qemu_coroutine_create(bdrv_qed_open_entry, &qoc));
         BDRV_POLL_WHILE(bs, qoc.ret == -EINPROGRESS);
     }
-    BDRV_POLL_WHILE(bs, qoc.ret == -EINPROGRESS);
     return qoc.ret;
 }
 
Signature · 1 line
2.39.2
Applied
#1 lore raw

Am 09.03.2023 um 17:31 hat Stefan Hajnoczi geschrieben:

Quoted 5 lines

This looks like a copy-paste or merge error. BDRV_POLL_WHILE() is already called above. It's not needed in the qemu_in_coroutine() case.

Fixes 9fb4dfc570ce ("qed: make bdrv_qed_do_open a coroutine_fn")

Thanks, applied to the block branch.

Kevin