qemu-block
[Top][All Lists]
Advanced

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

[PATCH] block/rbd: fix type of task->complete


From: Peter Lieven
Subject: [PATCH] block/rbd: fix type of task->complete
Date: Wed, 7 Jul 2021 20:04:48 +0200

task->complete is a bool not an integer.

Signed-off-by: Peter Lieven <pl@kamp.de>
---
 block/rbd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/block/rbd.c b/block/rbd.c
index 01a7b94d62..dcf82b15b8 100644
--- a/block/rbd.c
+++ b/block/rbd.c
@@ -1066,7 +1066,7 @@ static int qemu_rbd_resize(BlockDriverState *bs, uint64_t 
size)
 static void qemu_rbd_finish_bh(void *opaque)
 {
     RBDTask *task = opaque;
-    task->complete = 1;
+    task->complete = true;
     aio_co_wake(task->co);
 }
 
-- 
2.17.1





reply via email to

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