X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=ioengines.h;h=01a9b5860085f13885885edb326bcf8c14d5ccc3;hb=34d6090ea96ddaa4e2a0f914939e2b8ff7008bec;hp=feb21db893456ae4ba5948d47f620f13e3ba3c46;hpb=d3b07186b1d4c7c1d9adc1306407458ce41ad048;p=fio.git diff --git a/ioengines.h b/ioengines.h index feb21db8..01a9b586 100644 --- a/ioengines.h +++ b/ioengines.h @@ -7,7 +7,7 @@ #include "flist.h" #include "io_u.h" -#define FIO_IOOPS_VERSION 24 +#define FIO_IOOPS_VERSION 25 /* * io_ops->queue() return values @@ -25,6 +25,7 @@ struct ioengine_ops { int flags; int (*setup)(struct thread_data *); int (*init)(struct thread_data *); + int (*post_init)(struct thread_data *); int (*prep)(struct thread_data *, struct io_u *); enum fio_q_status (*queue)(struct thread_data *, struct io_u *); int (*commit)(struct thread_data *); @@ -62,6 +63,8 @@ enum fio_ioengine_flags { FIO_FAKEIO = 1 << 11, /* engine pretends to do IO */ FIO_NOSTATS = 1 << 12, /* don't do IO stats */ FIO_NOFILEHASH = 1 << 13, /* doesn't hash the files for lookup later. */ + FIO_ASYNCIO_SYNC_TRIM + = 1 << 14 /* io engine has async ->queue except for trim */ }; /*