summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-04-10 21:56:54 -0600
committerJens Axboe <axboe@kernel.dk>2019-04-10 21:56:54 -0600
commit986440978828fb13453ad64fc70bb13ec8f745d8 (patch)
treea2e0dea41535f3291f62011e4c7a64e9bd45217b /src
parent0656d71c964b3dba006f854ff0f6e9707e1f1d2b (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/io_uring.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io_uring.h b/src/io_uring.h
index 57b8f4d..43ecbc1 100644
--- a/src/io_uring.h
+++ b/src/io_uring.h
@@ -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)