block/rbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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
On 7/7/21 11:04 AM, Peter Lieven wrote:
> 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);
> }
>
>
Hi Peter,
What tree/QEMU git sha does this apply to? I am having trouble
finding definitions for RBDTask and qemu_rbd_finish_bh; and the
patch won't apply to my few-minutes-old clone of upstream.
Connor
Am 07.07.2021 um 23:51 hat Connor Kuehl geschrieben:
> On 7/7/21 11:04 AM, Peter Lieven wrote:
> > 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);
> > }
> >
> >
>
> Hi Peter,
>
> What tree/QEMU git sha does this apply to? I am having trouble
> finding definitions for RBDTask and qemu_rbd_finish_bh; and the
> patch won't apply to my few-minutes-old clone of upstream.
It is on top of:
[PATCH v5 0/6] block/rbd: migrate to coroutines and add write zeroes support
Message-Id: <20210702172356.11574-1-idryomov@gmail.com>
Also, thanks, applied to the block branch.
Kevin
On Wed, Jul 7, 2021 at 8:05 PM Peter Lieven <pl@kamp.de> wrote:
>
> 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
>
>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Thanks,
Ilya
adding myself as a designated reviewer.
Signed-off-by: Peter Lieven <pl@kamp.de>
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 516db737d1..cfda57e825 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -3058,6 +3058,7 @@ F: block/vmdk.c
RBD
M: Ilya Dryomov <idryomov@gmail.com>
+R: Peter Lieven <pl@kamp.de>
L: qemu-block@nongnu.org
S: Supported
F: block/rbd.c
--
2.17.1
On Wed, Jul 7, 2021 at 8:05 PM Peter Lieven <pl@kamp.de> wrote:
>
> adding myself as a designated reviewer.
>
> Signed-off-by: Peter Lieven <pl@kamp.de>
> ---
> MAINTAINERS | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 516db737d1..cfda57e825 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -3058,6 +3058,7 @@ F: block/vmdk.c
>
> RBD
> M: Ilya Dryomov <idryomov@gmail.com>
> +R: Peter Lieven <pl@kamp.de>
> L: qemu-block@nongnu.org
> S: Supported
> F: block/rbd.c
> --
> 2.17.1
>
>
Nit: I would change the title to "MAINTAINERS: add block/rbd.c reviewer"
or something like that.
Acked-by: Ilya Dryomov <idryomov@gmail.com>
Thanks again for volunteering!
Ilya
Am 08.07.2021 um 12:44 hat Ilya Dryomov geschrieben: > On Wed, Jul 7, 2021 at 8:05 PM Peter Lieven <pl@kamp.de> wrote: > > > > adding myself as a designated reviewer. > > > > Signed-off-by: Peter Lieven <pl@kamp.de> > > --- > > MAINTAINERS | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/MAINTAINERS b/MAINTAINERS > > index 516db737d1..cfda57e825 100644 > > --- a/MAINTAINERS > > +++ b/MAINTAINERS > > @@ -3058,6 +3058,7 @@ F: block/vmdk.c > > > > RBD > > M: Ilya Dryomov <idryomov@gmail.com> > > +R: Peter Lieven <pl@kamp.de> > > L: qemu-block@nongnu.org > > S: Supported > > F: block/rbd.c > > Nit: I would change the title to "MAINTAINERS: add block/rbd.c reviewer" > or something like that. Yes, this is better. I've changed it in my queue. Kevin
© 2016 - 2026 Red Hat, Inc.