struct fio_libnfs_options *o = td->eo;
struct pollfd pfds[1]; /* nfs:0 */
/* we already have stuff queued for fio, no need to waste cpu on poll() */
struct fio_libnfs_options *o = td->eo;
struct pollfd pfds[1]; /* nfs:0 */
/* we already have stuff queued for fio, no need to waste cpu on poll() */
/* fio core logic seems to stop calling this event-loop if we ever return with 0 events */
#define SHOULD_WAIT() (o->outstanding_events == td->o.iodepth || (flush && o->outstanding_events))
/* fio core logic seems to stop calling this event-loop if we ever return with 0 events */
#define SHOULD_WAIT() (o->outstanding_events == td->o.iodepth || (flush && o->outstanding_events))
res = 0;
} else if (io_u->ddir == DDIR_READ) {
memcpy(io_u->buf, data, res);
res = 0;
} else if (io_u->ddir == DDIR_READ) {
memcpy(io_u->buf, data, res);
}
ret = nfs_open(options->context, f->file_name, flags, &nfs_data->nfsfh);
}
ret = nfs_open(options->context, f->file_name, flags, &nfs_data->nfsfh);