Revision f2e5dca4 block/gluster.c

b/block/gluster.c
339 339
    }
340 340
    fcntl(s->fds[GLUSTER_FD_READ], F_SETFL, O_NONBLOCK);
341 341
    qemu_aio_set_fd_handler(s->fds[GLUSTER_FD_READ],
342
        qemu_gluster_aio_event_reader, NULL, NULL, s);
342
        qemu_gluster_aio_event_reader, NULL, s);
343 343

  
344 344
out:
345 345
    qemu_opts_del(opts);
......
438 438
        qemu_aio_release(acb);
439 439
        close(s->fds[GLUSTER_FD_READ]);
440 440
        close(s->fds[GLUSTER_FD_WRITE]);
441
        qemu_aio_set_fd_handler(s->fds[GLUSTER_FD_READ], NULL, NULL, NULL,
442
            NULL);
441
        qemu_aio_set_fd_handler(s->fds[GLUSTER_FD_READ], NULL, NULL, NULL);
443 442
        bs->drv = NULL; /* Make the disk inaccessible */
444 443
        qemu_mutex_unlock_iothread();
445 444
    }
......
595 594

  
596 595
    close(s->fds[GLUSTER_FD_READ]);
597 596
    close(s->fds[GLUSTER_FD_WRITE]);
598
    qemu_aio_set_fd_handler(s->fds[GLUSTER_FD_READ], NULL, NULL, NULL, NULL);
597
    qemu_aio_set_fd_handler(s->fds[GLUSTER_FD_READ], NULL, NULL, NULL);
599 598

  
600 599
    if (s->fd) {
601 600
        glfs_close(s->fd);

Also available in: Unified diff