Revision f2e5dca4 hw/block/dataplane/virtio-blk.c

b/hw/block/dataplane/virtio-blk.c
472 472
        exit(1);
473 473
    }
474 474
    s->host_notifier = *virtio_queue_get_host_notifier(vq);
475
    aio_set_event_notifier(s->ctx, &s->host_notifier, handle_notify, NULL);
475
    aio_set_event_notifier(s->ctx, &s->host_notifier, handle_notify);
476 476

  
477 477
    /* Set up ioqueue */
478 478
    ioq_init(&s->ioqueue, s->fd, REQ_MAX);
......
480 480
        ioq_put_iocb(&s->ioqueue, &s->requests[i].iocb);
481 481
    }
482 482
    s->io_notifier = *ioq_get_notifier(&s->ioqueue);
483
    aio_set_event_notifier(s->ctx, &s->io_notifier, handle_io, NULL);
483
    aio_set_event_notifier(s->ctx, &s->io_notifier, handle_io);
484 484

  
485 485
    s->started = true;
486 486
    trace_virtio_blk_data_plane_start(s);
......
512 512
        qemu_thread_join(&s->thread);
513 513
    }
514 514

  
515
    aio_set_event_notifier(s->ctx, &s->io_notifier, NULL, NULL);
515
    aio_set_event_notifier(s->ctx, &s->io_notifier, NULL);
516 516
    ioq_cleanup(&s->ioqueue);
517 517

  
518
    aio_set_event_notifier(s->ctx, &s->host_notifier, NULL, NULL);
518
    aio_set_event_notifier(s->ctx, &s->host_notifier, NULL);
519 519
    k->set_host_notifier(qbus->parent, 0, false);
520 520

  
521 521
    aio_context_unref(s->ctx);

Also available in: Unified diff