X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=ioengines.h;h=feb21db893456ae4ba5948d47f620f13e3ba3c46;hp=7d265e7471f35c2b1f30f7c79851713bb6bd5bba;hb=1368d95b060802f3032bb662144faa99bd521b56;hpb=a80cb54b6df815c5121f84d5126e2550e5f259cc diff --git a/ioengines.h b/ioengines.h index 7d265e74..feb21db8 100644 --- a/ioengines.h +++ b/ioengines.h @@ -7,12 +7,12 @@ #include "flist.h" #include "io_u.h" -#define FIO_IOOPS_VERSION 23 +#define FIO_IOOPS_VERSION 24 /* * io_ops->queue() return values */ -enum { +enum fio_q_status { FIO_Q_COMPLETED = 0, /* completed sync */ FIO_Q_QUEUED = 1, /* queued, will complete async */ FIO_Q_BUSY = 2, /* no more room, call ->commit() */ @@ -26,7 +26,7 @@ struct ioengine_ops { int (*setup)(struct thread_data *); int (*init)(struct thread_data *); int (*prep)(struct thread_data *, struct io_u *); - int (*queue)(struct thread_data *, struct io_u *); + enum fio_q_status (*queue)(struct thread_data *, struct io_u *); int (*commit)(struct thread_data *); int (*getevents)(struct thread_data *, unsigned int, unsigned int, const struct timespec *); struct io_u *(*event)(struct thread_data *, int); @@ -74,7 +74,7 @@ typedef void (*get_ioengine_t)(struct ioengine_ops **); */ extern int __must_check td_io_init(struct thread_data *); extern int __must_check td_io_prep(struct thread_data *, struct io_u *); -extern int __must_check td_io_queue(struct thread_data *, struct io_u *); +extern enum fio_q_status __must_check td_io_queue(struct thread_data *, struct io_u *); extern int __must_check td_io_getevents(struct thread_data *, unsigned int, unsigned int, const struct timespec *); extern void td_io_commit(struct thread_data *); extern int __must_check td_io_open_file(struct thread_data *, struct fio_file *);