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@xxxxxxxxxx> --- os/os-linux.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/os/os-linux.h b/os/os-linux.h index 4d150311..010a8291 100644 --- 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) -- 2.31.1