/* We cannot use this descriptor for other operations because the block driver may be on waiting response from the server.  */
static int get_sheep_fd(BDRVSheepdogState *s)
/* We cannot use this descriptor for other operations because the block driver may be on waiting response from the server.  */
static int get_sheep_fd(BDRVSheepdogState *s)
{
    int fd;
    fd = connect_to_sdog(s);
    if (fd < 0) {
        return fd;
    }
    qemu_aio_set_fd_handler(fd, co_read_response, NULL, s);
    return fd;
}