test/fsync: update for IOSQE_IO_DRAIN approach

I generalized the barrier flag to be applicable to all commands, so
let's drop the fsync special flag.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Jens Axboe
2019-04-10 21:56:54 -06:00
parent 0656d71c96
commit 9864409788
2 changed files with 10 additions and 6 deletions

View File

@@ -38,6 +38,7 @@ struct io_uring_sqe {
* sqe->flags
*/
#define IOSQE_FIXED_FILE (1U << 0) /* use fixed fileset */
#define IOSQE_IO_DRAIN (1U << 1)
/*
* io_uring_setup() flags
@@ -59,7 +60,6 @@ struct io_uring_sqe {
* sqe->fsync_flags
*/
#define IORING_FSYNC_DATASYNC (1U << 0)
#define IORING_FSYNC_BARRIER (1U << 1)
/*
* IO completion data structure (Completion Queue Entry)