From 5ba34480dc222db47d7813009eb95a7543790dd3 Mon Sep 17 00:00:00 2001 From: John Garry Date: Mon, 16 Sep 2024 16:53:39 +0000 Subject: [PATCH] os-linux: Define RWF_ATOMIC 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 Link: https://lore.kernel.org/r/20240916165347.2226763-2-john.g.garry@oracle.com Signed-off-by: Jens Axboe --- 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.25.1