Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 460244 | Differences between
and this patch

Collapse All | Expand All

(-)a/block/rbd.c (+4 lines)
Lines 548-553 static void qemu_rbd_close(BlockDriverSt Link Here
548
    close(s->fds[1]);
548
    close(s->fds[1]);
549
    qemu_aio_set_fd_handler(s->fds[RBD_FD_READ], NULL, NULL, NULL, NULL);
549
    qemu_aio_set_fd_handler(s->fds[RBD_FD_READ], NULL, NULL, NULL, NULL);
550
550
551
    /* workaround against commit f500a6d3c2b9ef0bb06d0080d91d8ed3c1d68f58 */
552
    if (!(s->image || s->io_ctx || s->snap || s->cluster))
553
        return;
554
551
    rbd_close(s->image);
555
    rbd_close(s->image);
552
    rados_ioctx_destroy(s->io_ctx);
556
    rados_ioctx_destroy(s->io_ctx);
553
    g_free(s->snap);
557
    g_free(s->snap);

Return to bug 460244