Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
struct posixaio_data *pd = td->io_ops->data;
struct list_head *entry;
struct timespec start;
struct posixaio_data *pd = td->io_ops->data;
struct list_head *entry;
struct timespec start;
- int r, have_timeout = 0;
+ int have_timeout = 0;
+ unsigned int r;
if (t && !fill_timespec(&start))
have_timeout = 1;
if (t && !fill_timespec(&start))
have_timeout = 1;
/*
* While we have less events than requested, block waiting for them
/*
* While we have less events than requested, block waiting for them
+ * (if we have to, there may already be more completed events ready
+ * for us - see fio_syslet_wait_for_events()
- while (sd->nr_events < (unsigned int) min)
+ while (sd->nr_events < min)
fio_syslet_wait_for_events(td);
ret = sd->nr_events;
fio_syslet_wait_for_events(td);
ret = sd->nr_events;