No more new opcodes, just set IOCB_FLAG_HIPRI instead.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
#include "../lib/pow2.h"
#include "../optgroup.h"
#include "../lib/pow2.h"
#include "../optgroup.h"
-#define IOCB_CMD_PREAD_POLL 9
-#define IOCB_CMD_PWRITE_POLL 10
+#ifndef IOCB_FLAG_HIPRI
+#define IOCB_FLAG_HIPRI (1 << 2)
+#endif
static int fio_libaio_commit(struct thread_data *td);
static int fio_libaio_commit(struct thread_data *td);
+ .lname = "High Priority",
.type = FIO_OPT_STR_SET,
.off1 = offsetof(struct libaio_options, hipri),
.help = "Use polled IO completions",
.type = FIO_OPT_STR_SET,
.off1 = offsetof(struct libaio_options, hipri),
.help = "Use polled IO completions",
if (io_u->ddir == DDIR_READ) {
io_prep_pread(&io_u->iocb, f->fd, io_u->xfer_buf, io_u->xfer_buflen, io_u->offset);
if (o->hipri)
if (io_u->ddir == DDIR_READ) {
io_prep_pread(&io_u->iocb, f->fd, io_u->xfer_buf, io_u->xfer_buflen, io_u->offset);
if (o->hipri)
- io_u->iocb.aio_lio_opcode = IOCB_CMD_PREAD_POLL;
+ io_u->iocb.u.c.flags |= IOCB_FLAG_HIPRI;
} else if (io_u->ddir == DDIR_WRITE) {
io_prep_pwrite(&io_u->iocb, f->fd, io_u->xfer_buf, io_u->xfer_buflen, io_u->offset);
if (o->hipri)
} else if (io_u->ddir == DDIR_WRITE) {
io_prep_pwrite(&io_u->iocb, f->fd, io_u->xfer_buf, io_u->xfer_buflen, io_u->offset);
if (o->hipri)
- io_u->iocb.aio_lio_opcode = IOCB_CMD_PWRITE_POLL;
+ io_u->iocb.u.c.flags |= IOCB_FLAG_HIPRI;
} else if (ddir_sync(io_u->ddir))
io_prep_fsync(&io_u->iocb, f->fd);
} else if (ddir_sync(io_u->ddir))
io_prep_fsync(&io_u->iocb, f->fd);