X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=ioengine.h;h=3d49993699294c2148f8601e884169ab7ab0a0fe;hb=5c7808fe8533cc960982963586b9d9f09f16358b;hp=a55290d47f55eaac7d034e4246ee5ac44ad7b924;hpb=55312f9f5572611037b6254912460f64173df574;p=fio.git diff --git a/ioengine.h b/ioengine.h index a55290d4..3d499936 100644 --- a/ioengine.h +++ b/ioengine.h @@ -119,6 +119,7 @@ struct io_u { struct ibv_mr *mr; #endif void *mmap_data; + uint64_t null; }; }; @@ -251,4 +252,14 @@ static inline enum fio_ddir acct_ddir(struct io_u *io_u) return io_u->ddir; } +static inline void io_u_clear(struct io_u *io_u, unsigned int flags) +{ + __sync_fetch_and_and(&io_u->flags, ~flags); +} + +static inline void io_u_set(struct io_u *io_u, unsigned int flags) +{ + __sync_fetch_and_or(&io_u->flags, flags); +} + #endif