]> git.proxmox.com Git - mirror_qemu.git/commitdiff
block/rbd: fix type of task->complete
authorPeter Lieven <pl@kamp.de>
Wed, 7 Jul 2021 18:04:48 +0000 (20:04 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 9 Jul 2021 10:26:05 +0000 (12:26 +0200)
task->complete is a bool not an integer.

Signed-off-by: Peter Lieven <pl@kamp.de>
Message-Id: <20210707180449.32665-1-pl@kamp.de>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/rbd.c

index 01a7b94d625773ee259481b254d0c6aa686da29e..dcf82b15b8023c41b2fe1ed8eb417228be0b3a27 100644 (file)
@@ -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);
 }