projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0af081
)
os-linux: Define RWF_ATOMIC
author
John Garry
<john.g.garry@oracle.com>
Mon, 16 Sep 2024 16:53:39 +0000
(16:53 +0000)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 16 Sep 2024 18:15:15 +0000
(12:15 -0600)
Add a definition of RWF_ATOMIC when not available from uapi headers.
RWF_ATOMIC is going to be part of Linux v6.11
Signed-off-by: John Garry <john.g.garry@oracle.com>
Link:
https://lore.kernel.org/r/20240916165347.2226763-2-john.g.garry@oracle.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
os/os-linux.h
patch
|
blob
|
blame
|
history
diff --git
a/os/os-linux.h
b/os/os-linux.h
index 4d150311a38222797d869b9874506c203062b66a..010a82913eeb62d3b24ea3530a0ff0d523492879 100644
(file)
--- a/
os/os-linux.h
+++ b/
os/os-linux.h
@@
-328,6
+328,10
@@
static inline int fio_set_sched_idle(void)
#define RWF_NOWAIT 0x00000008
#endif
+#ifndef RWF_ATOMIC
+#define RWF_ATOMIC 0x00000040
+#endif
+
#ifndef RWF_WRITE_LIFE_SHIFT
#define RWF_WRITE_LIFE_SHIFT 4
#define RWF_WRITE_LIFE_SHORT (1 << RWF_WRITE_LIFE_SHIFT)