Message ID | 20231221014903.1537962-4-stefanha@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | qemu-iotests fixes for Kevin's block tree | expand |
On 12/21/23 02:49, Stefan Hajnoczi wrote: > Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> > --- > hw/scsi/scsi-bus.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/hw/scsi/scsi-bus.c b/hw/scsi/scsi-bus.c > index df68a44b6a..5b08cbf60a 100644 > --- a/hw/scsi/scsi-bus.c > +++ b/hw/scsi/scsi-bus.c > @@ -127,7 +127,8 @@ static void scsi_device_for_each_req_async_bh(void *opaque) > */ > ctx = blk_get_aio_context(s->conf.blk); > if (ctx != qemu_get_current_aio_context()) { > - aio_bh_schedule_oneshot(ctx, scsi_device_for_each_req_async_bh, data); > + aio_bh_schedule_oneshot(ctx, scsi_device_for_each_req_async_bh, > + g_steal_pointer(&data)); > return; > } > Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
diff --git a/hw/scsi/scsi-bus.c b/hw/scsi/scsi-bus.c index df68a44b6a..5b08cbf60a 100644 --- a/hw/scsi/scsi-bus.c +++ b/hw/scsi/scsi-bus.c @@ -127,7 +127,8 @@ static void scsi_device_for_each_req_async_bh(void *opaque) */ ctx = blk_get_aio_context(s->conf.blk); if (ctx != qemu_get_current_aio_context()) { - aio_bh_schedule_oneshot(ctx, scsi_device_for_each_req_async_bh, data); + aio_bh_schedule_oneshot(ctx, scsi_device_for_each_req_async_bh, + g_steal_pointer(&data)); return; }
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> --- hw/scsi/scsi-bus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)